k_chart_pw 0.5.6 k_chart_pw: ^0.5.6 copied to clipboard
A Flutter K Chart. On the basis of the forked, we added the function that will show buy sell signal on the charts,and support draw lines on the charts,and text on the charts.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add k_chart_pw
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
k_chart_pw: ^0.5.6
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:k_chart_pw/chart_style.dart';
import 'package:k_chart_pw/chart_translations.dart';
import 'package:k_chart_pw/depth_chart.dart';
import 'package:k_chart_pw/entity/candle_entity.dart';
import 'package:k_chart_pw/entity/cci_entity.dart';
import 'package:k_chart_pw/entity/depth_entity.dart';
import 'package:k_chart_pw/entity/extra_buy_sell_signal.dart';
import 'package:k_chart_pw/entity/extra_line.dart';
import 'package:k_chart_pw/entity/extra_text_label.dart';
import 'package:k_chart_pw/entity/index.dart';
import 'package:k_chart_pw/entity/info_window_entity.dart';
import 'package:k_chart_pw/entity/k_entity.dart';
import 'package:k_chart_pw/entity/k_line_entity.dart';
import 'package:k_chart_pw/entity/kdj_entity.dart';
import 'package:k_chart_pw/entity/macd_entity.dart';
import 'package:k_chart_pw/entity/rsi_entity.dart';
import 'package:k_chart_pw/entity/rw_entity.dart';
import 'package:k_chart_pw/entity/volume_entity.dart';
import 'package:k_chart_pw/extension/map_ext.dart';
import 'package:k_chart_pw/extension/num_ext.dart';
import 'package:k_chart_pw/flutter_k_chart.dart';
import 'package:k_chart_pw/k_chart_widget.dart';
import 'package:k_chart_pw/renderer/base_chart_painter.dart';
import 'package:k_chart_pw/renderer/base_chart_renderer.dart';
import 'package:k_chart_pw/renderer/chart_painter.dart';
import 'package:k_chart_pw/renderer/index.dart';
import 'package:k_chart_pw/renderer/main_renderer.dart';
import 'package:k_chart_pw/renderer/secondary_renderer.dart';
import 'package:k_chart_pw/renderer/vol_renderer.dart';
import 'package:k_chart_pw/utils/data_util.dart';
import 'package:k_chart_pw/utils/date_format_util.dart';
import 'package:k_chart_pw/utils/index.dart';
import 'package:k_chart_pw/utils/number_util.dart';