k_chart_plus_deeping은 거래 애플리케이션에 적합한 캔들스틱 및 딥 차트를 포함하여 고급 금융 차트를 구축하기 위해 설계된 Flutter 패키지입니다. 실시간 데이터 업데이트를 지원하며 부드럽고 사용자 정의 가능한 시각화를 제공합니다. 경험 많은 개발자를 위한 것으로, 다양한 플랫폼에서 거래 또는 금융 중심 앱에 원활하게 통합될 수 있습니다. 이 라이브러리는 오픈소스이며, Telegram을 통해 협업을 환영하는 개발자가 유지 관리하고 있습니다.
If you don't want to support selecting multiple secondary states, you need to use:
flutter_k_chat_plus:git:url:https://github.com/sawwas/flutter_k_chat_plusref:single#branch name
Usage
When you change the data, you must call this:
DataUtil.calculate(datas); //This function has some optional parameters: n is BOLL N-day closing price. k is BOLL param.
Use K line chart
KChartWidget(
chartStyle, // Required for styling purposes
chartColors,// Required for styling purposes
datas,// Required,Data must be an ordered list,(history=>now)
mBaseHeight: 360, //height of chart (not contain Vol and Secondary)
isLine: isLine,// Decide whether it is k-line or time-sharing
mainState: _mainState,// Decide what the main view shows
secondaryStateLi: _secondaryStateLi,// Decide what the sub view shows
fixedLength: 2,// Displayed decimal precision
timeFormat: TimeFormat.YEAR_MONTH_DAY,
onLoadMore: (bool a) {},// Called when the data scrolls to the end. When a is true, it means the user is pulled to the end of the right side of the data. When a// is false, it means the user is pulled to the end of the left side of the data.
maDayList: [5,10,20],// Display of MA,This parameter must be equal to DataUtil.calculate‘s maDayList
volHidden: false,// hide volume
showNowPrice: true,// show now price
isOnDrag: (isDrag){},// true is on Drag.Don't load data while Draging.
isTrendLine: false, // You can use Trendline by long-pressing and moving your finger after setting true to isTrendLine property.
xFrontPadding: 100// padding in front
),
Use Depth chart
DepthChart(_bids, _asks, chartColors) //Note: Datas must be an ordered list,
Dark | Light Theme
ChartColor helped to set the color for the chart. You need to flexibly change according to your theme configuration to ensure UI.
If you need to apply multi theme, you need to change at least the colors related to the text, border, grid and background color