Skip to content

Commit d5cfd5f

Browse files
committed
A new start
0 parents  commit d5cfd5f

File tree

212 files changed

+13632
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

212 files changed

+13632
-0
lines changed

.flutter-plugins

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# This is a generated file; do not edit or check into version control.
2+
pointer_interceptor=C:\\Users\\user\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\pointer_interceptor-0.10.1+2\\
3+
pointer_interceptor_ios=C:\\Users\\user\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\pointer_interceptor_ios-0.10.1\\
4+
pointer_interceptor_web=C:\\Users\\user\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\pointer_interceptor_web-0.10.2+1\\
5+
webview_flutter=C:\\Users\\user\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\webview_flutter-4.10.0\\
6+
webview_flutter_android=C:\\Users\\user\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\webview_flutter_android-4.3.2\\
7+
webview_flutter_wkwebview=C:\\Users\\user\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\webview_flutter_wkwebview-3.18.2\\

.flutter-plugins-dependencies

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"pointer_interceptor_ios","path":"C:\\\\Users\\\\user\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\pointer_interceptor_ios-0.10.1\\\\","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"webview_flutter_wkwebview","path":"C:\\\\Users\\\\user\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\webview_flutter_wkwebview-3.18.2\\\\","shared_darwin_source":true,"native_build":true,"dependencies":[],"dev_dependency":false}],"android":[{"name":"webview_flutter_android","path":"C:\\\\Users\\\\user\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\webview_flutter_android-4.3.2\\\\","native_build":true,"dependencies":[],"dev_dependency":false}],"macos":[{"name":"webview_flutter_wkwebview","path":"C:\\\\Users\\\\user\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\webview_flutter_wkwebview-3.18.2\\\\","shared_darwin_source":true,"native_build":true,"dependencies":[],"dev_dependency":false}],"linux":[],"windows":[],"web":[{"name":"pointer_interceptor_web","path":"C:\\\\Users\\\\user\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\pointer_interceptor_web-0.10.2+1\\\\","dependencies":[],"dev_dependency":false}]},"dependencyGraph":[{"name":"pointer_interceptor","dependencies":["pointer_interceptor_ios","pointer_interceptor_web"]},{"name":"pointer_interceptor_ios","dependencies":[]},{"name":"pointer_interceptor_web","dependencies":[]},{"name":"webview_flutter","dependencies":["webview_flutter_android","webview_flutter_wkwebview"]},{"name":"webview_flutter_android","dependencies":[]},{"name":"webview_flutter_wkwebview","dependencies":[]}],"date_created":"2025-02-23 01:44:03.678200","version":"3.29.0","swift_package_manager_enabled":{"ios":false,"macos":false}}

.github/workflows/main.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
7+
jobs:
8+
dependencies:
9+
name: Build
10+
runs-on: ubuntu-latest
11+
env:
12+
GITHUB_TOKEN: ${{ secrets.TOKEN }}
13+
USERNAME: warioddly
14+
steps:
15+
- uses: actions/checkout@v3
16+
- uses: subosito/flutter-action@v2
17+
with:
18+
flutter-version: "3.29.0"
19+
channel: 'stable'
20+
cache: true
21+
22+
- name: Run Flutter build
23+
run: |
24+
# Enable web config in flutter
25+
flutter config --enable-web
26+
27+
# Go to example dir
28+
cd example
29+
30+
# Get project dependencies
31+
flutter pub get
32+
33+
# Build project
34+
flutter build web --release --wasm --base-href="/graphify/"
35+
36+
- name: Deploy to Github Pages
37+
uses: peaceiris/actions-gh-pages@v3
38+
with:
39+
github_token: ${{ env.GITHUB_TOKEN }}
40+
publish_dir: ./example/build/web
41+
force_orphan: true
42+
user_name: 'github-ci[bot]'
43+
user_email: 'github-actions[bot]@users.noreply.github.com'
44+
commit_message: 'Publish to gh-pages'

.gitignore

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
6+
.DS_Store
7+
.atom/
8+
.buildlog/
9+
.history
10+
.svn/
11+
migrate_working_dir/
12+
13+
# IntelliJ related
14+
*.iml
15+
*.ipr
16+
*.iws
17+
.idea/
18+
19+
# The .vscode folder contains launch configuration and tasks you configure in
20+
# VS Code which you may wish to be included in version control, so this line
21+
# is commented out by default.
22+
#.vscode/
23+
24+
# Flutter/Dart/Pub related
25+
# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock.
26+
/pubspec.lock
27+
**/doc/api/
28+
.dart_tool/
29+
build/

.metadata

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# This file tracks properties of this Flutter project.
2+
# Used by Flutter tool to assess capabilities and perform upgrades etc.
3+
#
4+
# This file should be version controlled and should not be manually edited.
5+
6+
version:
7+
revision: "78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9"
8+
channel: "stable"
9+
10+
project_type: plugin
11+
12+
# Tracks metadata for the flutter migrate command
13+
migration:
14+
platforms:
15+
- platform: root
16+
create_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
17+
base_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
18+
- platform: android
19+
create_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
20+
base_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
21+
- platform: ios
22+
create_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
23+
base_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
24+
- platform: linux
25+
create_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
26+
base_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
27+
- platform: macos
28+
create_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
29+
base_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
30+
- platform: web
31+
create_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
32+
base_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
33+
- platform: windows
34+
create_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
35+
base_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
36+
37+
# User provided section
38+
39+
# List of Local paths (relative to this file) that should be
40+
# ignored by the migrate tool.
41+
#
42+
# Files that are not part of the templates will be ignored by default.
43+
unmanaged_files:
44+
- 'lib/main.dart'
45+
- 'ios/Runner.xcodeproj/project.pbxproj'

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
## 0.0.2
2+
3+
* Add support update chart
4+
* Adding example of how to use graphify

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 Bekeev Imankadyr
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
# GRAPHIFY
2+
> #### A data visualization charts library, based on Apache ECharts, able to build advanced charts like WebGL 3D, GIS map, etc.
3+
> #### [See demo](https://warioddly.github.io/graphify/).
4+
> #### [See Echarts Examples](https://echarts.apache.org/examples/en/index.html)
5+
6+
| ![graph_webkit_dep](https://github.com/user-attachments/assets/2ce1808d-a542-4295-9e3a-4918bcf6053e) | ![bar_3d_chart](https://github.com/user-attachments/assets/6d50d560-ee8e-4f39-99c4-dc271ba2556c) |
7+
|:--------------------------------------------------------------------:|:--------------------------------------------------------------------:|
8+
| ![candle_stick_brush](https://github.com/user-attachments/assets/668c6fef-4068-48d8-9a49-fe00c47ef946) | ![all](https://github.com/user-attachments/assets/2403f837-8870-4eba-a75c-30d41e7e543f) |
9+
10+
A Flutter package that serves as a bridge to [Apache ECharts](https://echarts.apache.org/) for creating interactive charts and data visualizations in your Flutter applications.
11+
12+
13+
## Features
14+
15+
- **Apache ECharts Integration:** Leverage the full power of Apache ECharts directly within your Flutter app.
16+
- **Flexible Configuration:** Pass chart configurations as JSON to render interactive visualizations.
17+
- **All ECharts Features:** You can find [here](https://echarts.apache.org/en/feature.html) eCharts features
18+
19+
20+
## Installation
21+
22+
Add the dependency to your `pubspec.yaml` with:
23+
```bash
24+
dart pub add graphify
25+
```
26+
27+
Then run:
28+
```bash
29+
flutter pub get
30+
```
31+
32+
33+
34+
## Quick Start
35+
### Importing the Package
36+
Import the package into your Dart file:
37+
38+
```dart
39+
import 'package:graphify/graphify.dart';
40+
```
41+
### Basic Example
42+
Below is a minimal example demonstrating how to display a bar chart:
43+
```dart
44+
class BasicBarChart extends StatefulWidget {
45+
const BasicBarChart({super.key});
46+
47+
@override
48+
State<BasicBarChart> createState() => _BasicBarChartState();
49+
}
50+
51+
class _BasicBarChartState extends State<BasicBarChart> {
52+
53+
final controller = GraphifyController();
54+
55+
@override
56+
Widget build(BuildContext context) {
57+
return GraphifyView(
58+
controller: controller,
59+
initialOptions: const {
60+
"xAxis": {
61+
"type": "category",
62+
"data": ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
63+
},
64+
"yAxis": {
65+
"type": "value"
66+
},
67+
"series": [
68+
{
69+
"data": [120, 200, 150, 80, 70, 110, 130],
70+
"type": "bar"
71+
}
72+
]
73+
},
74+
);
75+
}
76+
77+
@override
78+
void dispose() {
79+
controller.dispose();
80+
super.dispose();
81+
}
82+
83+
}
84+
```
85+
86+
## Parameters and Settings
87+
A string containing the [JSON configuration](https://echarts.apache.org/en/option.html#title) for the chart, based on the Apache ECharts documentation.
88+
89+
## Documentation and Support
90+
Refer to the Apache ECharts Documentation for detailed configuration options and features.
91+
For source code, issue tracking, and contributions, visit the GitHub repository.
92+
93+
## License
94+
This project is licensed under the [MIT License](https://github.com/warioddly/graphify/blob/main/LICENSE).
95+
96+
## Contributing
97+
We welcome your contributions!
98+
99+
1. Fork the repository and create a branch for your changes.
100+
2. Commit your changes with clear messages.
101+
3. Open a pull request describing your work.
102+
103+
For bug reports or feature requests, please open an issue.
104+
105+
Thank you!

SECURITY.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Security Policy
2+
3+
## Supported Versions
4+
5+
Use this section to tell people about which versions of your project are
6+
currently being supported with security updates.
7+
8+
| Version | Supported |
9+
| ------- | ------------------ |
10+
| 5.1.x | :white_check_mark: |
11+
| 5.0.x | :x: |
12+
| 4.0.x | :white_check_mark: |
13+
| < 4.0 | :x: |
14+
15+
## Reporting a Vulnerability
16+
17+
Use this section to tell people how to report a vulnerability.
18+
19+
Tell them where to go, how often they can expect to get an update on a
20+
reported vulnerability, what to expect if the vulnerability is accepted or
21+
declined, etc.

analysis_options.yaml

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
# This file configures the analyzer, which statically analyzes Dart code to
2+
# check for errors, warnings, and lints.
3+
#
4+
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5+
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6+
# invoked from the command line by running `flutter analyze`.
7+
8+
# The following line activates a set of recommended lints for Flutter apps,
9+
# packages, and plugins designed to encourage good coding practices.
10+
include: package:flutter_lints/flutter.yaml
11+
12+
13+
analyzer:
14+
errors:
15+
invalid_use_of_protected_member: error
16+
17+
linter:
18+
# The lint rules applied to this project can be customized in the
19+
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
20+
# included above or to enable additional rules. A list of all available lints
21+
# and their documentation is published at
22+
# https://dart-lang.github.io/linter/lints/index.html.
23+
#
24+
# Instead of disabling a lint rule for the entire project in the
25+
# section below, it can also be suppressed for a single line of code
26+
# or a specific dart file by using the `// ignore: name_of_lint` and
27+
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
28+
# producing the lint.
29+
rules:
30+
use_build_context_synchronously: false
31+
avoid_print: true
32+
avoid_relative_lib_imports: true
33+
avoid_types_as_parameter_names: true
34+
always_declare_return_types: true
35+
prefer_const_constructors: true
36+
prefer_const_constructors_in_immutables: true
37+
prefer_const_declarations: true
38+
camel_case_types: true
39+
always_use_package_imports: true
40+
avoid_empty_else: true
41+
cancel_subscriptions: true
42+
close_sinks: true
43+
collection_methods_unrelated_type: true
44+
control_flow_in_finally: true
45+
empty_statements: true
46+
no_duplicate_case_values: true
47+
no_logic_in_create_state: true
48+
throw_in_finally: true
49+
unnecessary_statements: true
50+
unrelated_type_equality_checks: true
51+
always_put_control_body_on_new_line: true
52+
always_put_required_named_parameters_first: true
53+
omit_local_variable_types: true
54+
avoid_single_cascade_in_expression_statements: true
55+
empty_catches: true
56+
empty_constructor_bodies: true
57+
file_names: true
58+
leading_newlines_in_multiline_strings: true
59+
library_names: true
60+
library_prefixes: true
61+
prefer_asserts_with_message: true
62+
prefer_final_fields: true
63+
sort_constructors_first: true
64+
unawaited_futures: true
65+
unnecessary_const: true
66+
unnecessary_late: true
67+
unnecessary_new: true
68+
use_rethrow_when_possible: true
69+
unnecessary_null_aware_assignments: true
70+
unnecessary_null_aware_operator_on_extension_on_nullable: true
71+
unnecessary_null_in_if_null_operators: true
72+
unnecessary_overrides: true
73+
unnecessary_string_escapes: true
74+
unnecessary_this: true
75+
use_colored_box: true
76+
use_decorated_box: true
77+
78+
79+
# Additional information about this file can be found at
80+
# https://dart.dev/guides/language/analysis-options

0 commit comments

Comments
 (0)