Code Monkey home page Code Monkey logo

k_chart's Introduction

OpenFlutter

logo

微信公众号

wx

What's OpenFlutter

OpenFlutter is a open source organization of Flutter.OpenFutter is a central place for all community made Flutter packages.


什么是 OpenFlutter

OpenFlutter 是一个 Flutter 的开源组织。OpenFutter 致力于成为第三方 Flutter 包集中地。


OpenFlutter makes it easier.
Join us!
OpenFlutter 让 flutter 开发更简单。
加入我们!
Welcome to share the Flutter project to OpenFlutter.
随时欢迎分享 Flutter 项目到 OpenFlutter。

If you have any quetions or want to be member of OpenFluter, just e-mail me.

如果你有任何问题或者想成为OpenFlutter的一员,可以给我发邮件。

[email protected]

现有项目大致介绍

OpenFlutter
本组织相关一些介绍
about OpenFlutter intro

FlutterInAction
一些 flutter 相关文章收集项目
A collection of excellent articles about flutter.

tobias
支付宝插件
alipay plugin

fluwx
微信插件
wechat plugin

flutter_image_compress
图片压缩库,使用桥接原生实现,效率高于 dart 压缩
use kotlin/oc to compress image

tencent_cos
腾讯 cos 插件,上传图片使用
tencent cos plugin, upload picture to tencent

Flutter-Notebook
日更的 FlutterDemo 合集,今天你 fu 了吗 ,包含一些 demo,值得一试
some demo for flutter,everyday update

PullToRefresh
一些 UI 效果的实现,内含丰富 gif 图
UI solution, rich GIF demonstration.

flutter_ScreenUtil
屏幕适配的一个实现方案,欢迎关注
Screen adaptation scheme

loadmore
滚动到底加载更多,只支持 listview,易于使用
loadmore for listview, easy use.

flutter_gesture_password
九宫格解锁(手势解锁)
unlock with gesture

flutter_oktoast
仿 android toast 插件 纯 dart 实现
like android toast, pure flutter library ,not have native code.

flutter_navigation_bar
解决官方例子会不停销毁重建的问题
resolve gallery demos navigation bar will dispose's problem.

mmkv_flutter
mmkv库的flutter插件,mmkv是一个c++编写的高速key value库
mmkv library's flutter plugin, mmkv is a high-speed key value library written by c++.

flutter_ok_image
加载网络图片的框架,支持重试/失败/超时/加载动画
load net image,support retry/error/loading/timeout

rammus Plugin for AliCloud Push
阿里云推送插件。

flutter_page_indicator
Page indicator for flutter, with multiple build-in layouts. Forked from best-flutter.
酷炫的指示器,多达6种指示器样式。

neeko
Simple video player widget based on video_player.
基于video_player的播放器控件。

k_chart
Flutter K-Chart. K线图。

mini_calendar
Date component developed with Flutter, plans to support display, swipe left and right, add date mark, radio, display week, etc.
使用Flutter开发的日期组件,计划支持显示,左右滑动,添加日期标记,单选,显示星期等功能。

k_chart's People

Contributors

afzl-wtu avatar akshitostwal avatar karanchuri avatar mafanwei avatar marykravets avatar mdat31 avatar mingchaogui avatar misagu avatar ransj avatar tuuzed avatar typ0520 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

k_chart's Issues

Parameters for adjusting scale of chart

Hi, we would like to check with you if there are plans for allowing the scale of the chart to be adjustable or parameterized? As from what we saw, the chart currently has a minimum and maximum scaling configured which does not allow the chart to be fully zoomed out.

Thank you!

How to specify a timeframe?

I have some data rendering this:

image

Can I stretch this data on the whole graph, instead of just showing these few data points at the very left of the chart? Thanks in advance.

Help with Depth chat.

Hello, could you help with depth chat please. I have a problem with bids. I'm using the example code but it doesn't look right.
Big thanks.

 void initDepth(List<DepthEntity>? bids, List<DepthEntity>? asks) {
    if (bids == null || asks == null || bids.isEmpty || asks.isEmpty) return;
    listAsk = [];
    listBid = [];
    double amount = 0.0;
    bids.sort((left, right) => left.price.compareTo(right.price));
    bids.reversed.forEach((item) {
      amount += item.vol;
      item.vol = amount;
      listBid.insert(0, item);
    });

    amount = 0.0;
    asks.sort((left, right) => left.price.compareTo(right.price));
    asks.forEach((item) {
      amount += item.vol;
      item.vol = amount;
      listAsk.add(item);
    });

    emit(state.copyWith(
      listAsk: listAsk,
      listBid: listBid,
      status: NewTradeStatus.pending,
    ));
  }

image

Flutter candlestick chart - request

我已经检查了您的flutter库,这是一项了不起的工作。 我需要对现有flutter项目进行一些自定义和添加。 你能做到吗 ? 我该如何联系您?

No option to add padding in front of chart

There is no option to add padding in front of the chart, sometimes the price overlaps with the candle, so at least in beginning there should be an option to add some padding.

Currently it is shown like this

Simulator Screen Shot - iPhone 13 Pro - 2022-06-27 at 20 21 45

I have fixed this raising the PR too

it should look something like this

Simulator_Screen_Recording_iPhone_13_Pro_2022_06_27_at_20_08_03.mp4

i18n supports

I think the i18n infoNames[] instead of infoNamesCN or infoNamesEN in k_chart_widget.dart.


final List infoNamesCN = [
"时间",
"开",
"高",
"低",
"收",
"涨跌额",
"涨跌幅",
"成交额"
];
final List infoNamesEN = [
"Date",
"Open",
"High",
"Low",
"Close",
"Change",
"Change%",
"Amount"
];


Anyway, I've tried to experiment with k_chart for my project.

  1. https://github.com/bsjung/k_chart.
  2. https://github.com/bsjung/start_examples.

曲线类型

要添加更多曲线类可以通过配置嘛?

更新数据

请问作者,这个插件怎么更新数据啊,有例子吗?

K线显示异常

KLineEntity类的change和ratio属性没有赋值,vol用的amount的值.
不知道是不是和这个有关系,请楼主赐教哈~
1578992299494
123

Formula for technical indicators

Hi, i am trying to verify the data for all technical indicators, but somehow value are not matching. is it possible you can share the calculation of all technical indicators which have been used in library.

折线图粗细不一致

应该是对画布进行了缩放导致的,具体表现是,横线宽度是正常的(画笔对应的strokeWidth),缩小状态下竖线明显细很多,请问下这个问题有解决办法吗

1596698673078

Add ticker support

Hi,
Maybe I haven't found, but is there ability to add support of live ticker like in example attached below(yellow price at the right).
2021-04-02 13 36 05

Need some space on edges

Hi! Can you add some space on the start edge and end egde of the chart like this, a parameter for it would be perfect.

image

ability to change grid colors

I'm trying to switch from default dark theme to light theme (white background) and I'm trying to change the grid colors.

I found in base_chart_renderer.dart line 16 the gridPaint is a fixed color of 0xff4c5c74.

    ..color = Colors.red;
  Paint gridPaint = Paint()
    ..isAntiAlias = true
    ..filterQuality = FilterQuality.high
    ..strokeWidth = 0.5
    ..color = Color(0xff4c5c74); <-----
Could you extend the capability to allowing custom colors via chart_style.dart please?

Thanks!

Tick chart with highlight target price

Hi Mafanwei,
Need your help with this one. I have looked at the reference and tutorial to make the chart like this for weeks, but I can not find it.
Could you help me to make the chart like this?
There are the details :
Tick chart with Bid and Ask price include Take Profit & Stoploss price.
Difficulty to highlight the target price on the Y-axis.
tick chart with TP SL
tick chart with TP SL 2

Need your help.

切换周期问题

比如说一个15M周期有1000条数据,那么1H只有250条数据,当我把当前15M的蜡烛图拖到最前边,然后切换为1H这时候整个视图就不在屏幕中了,只能滑动一下才会出来1H的图,这个有解决方案么?

how to use general line/pie charts with k_chart.

At first, I've tried integrating google charts with k_chart. But google charts has complex architecture.
My intentions are an intuitive API for easy use.

Thus, I've re-designed my packages for general line/pie charts with k_chart.
Still, it is an alpha stage, but I will notice if I've completed it.

Benjamin Jung ( [email protected] )

Another exception was thrown: NoSuchMethodError: The method '>' was called on null.

I have a trouble with the package. Sometimes, it says "Another exception was thrown: NoSuchMethodError: The method '>' was called on null" and it does not print any chart. Is there a way to solve that or to detect which method causes error?

edit: it could be related to this error:
══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════
The following NoSuchMethodError was thrown during paint():
The method 'toDouble' was called on null.
Receiver: null
Tried calling: toDouble()

The relevant error-causing widget was:
CustomPaint
CustomPaint:file:///Users/mac13/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/k_chart-0.4.0/lib/k_chart_widget.dart:194:11

Maximum minimum ratio support is required.

We are using your plug-in well and are using your plug-in to operate the actual service. It is evaluated as the best chart library in Plutter. However, there are some problems with the plug-in.

First, the zoom recognition of both fingers is not good, so it is difficult to zoom in and out.

Second, the maximum reduction radius is not specified. Currently, the scope of reduction seems to be small. I hope we can widen the radius of reduction to the maximum.
Thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.