flutter_echarts
flutter_echarts copied to clipboard
A Flutter widget to use Apache ECharts in a reactive way.
Echarts( reloadAfterInit: true, option: ''' { dataset: { dimensions: ['name', 'value'], source: ${jsonEncode(_data1)}, }, tooltip: { enterable: true, trigger: 'item', formatter: function (params) { var data = params.data.name; return '数据:'...
@override Widget build(BuildContext context) { return Container( // 必须要用container height: 180, width: 300, child: Echarts( option: ''' { tooltip: { }, series: [ { name: 'Pressure', type: 'gauge', detail: {...
It is possible to use svg file with this library?

const colors = ['#5470C6', '#91CC75', '#EE6666']; option = {"grid":{"left":0,"top":10,"right":0,"bottom":60,"containLabel":true},"tooltip":{"show":true,"trigger":"axis","axisPointer":{"type":"shadow"},"confine":true},"legend":{"bottom":20,"itemHeight":3,"itemWidth":12,"itemGap":20,"textStyle":{"rich":{"a":{"fontSize":14.000000000000002,"color":"#3D4255","fontWeight":400},"b":{"fontSize":12,"color":"#74798C","fontWeight":400}}}},"xAxis":[{"type":"category","axisTick":{"show":true},"axisLabel":{"color":"#9B9EAC"},"axisLine":{"lineStyle":{"color":"#DEDEDE"}},"data":["2017","2018","2019","2020","2021"]},{"type":"value","show":false,"data":["2017","2018","2019","2020","2021"]}],"yAxis":{"type":"value","nameTextStyle":{"color":"#9B9EAC","padding":[0,0,10,0]},"axisLabel":{"color":"#9B9EAC"},"splitLine":{"lineStyle":{"type":"dashed","color":"#DEDEDE"}},"axisTick":{"show":false},"axisLine":{"show":false}},"series":[{"name":"重庆市","data":[{"value":20066.3},{"value":21588.8},{"value":23605.8},{"value":25041.4},{"value":27894}],"type":"line","smooth":true,"symbol":"circle","symbolSize":2,"markPoint":{"clickable":false,"large":false,"data":[{"coord":[1,20827.55],"symbolOffset":["-50%",-10],"value":"7.59%","label":{"color":" red","backgroundColor":"transparent"},"itemStyle":{"color":"transparent"},"symbol":"triangle"},{"coord":[2,22597.3],"symbolOffset":["-50%",-10],"value":"9.34%","label":{"color":" red","backgroundColor":"transparent"},"itemStyle":{"color":"transparent"},"symbol":"triangle"},{"coord":[3,24323.6],"symbolOffset":["-50%",-10],"value":"6.08%","label":{"color":" red","backgroundColor":"transparent"},"itemStyle":{"color":"transparent"},"symbol":"triangle"},{"coord":[4,26467.7],"symbolOffset":["-50%",-10],"value":"11.39%","label":{"color":" red","backgroundColor":"transparent"},"itemStyle":{"color":"transparent"},"symbol":"triangle"},{"coord":[5,null],"symbolOffset":["-50%",-10],"value":"","label":{"color":" red","backgroundColor":"transparent"},"itemStyle":{"color":"transparent"},"symbol":"triangle"}]},"itemStyle":{"color":"#4AB8FF"},"tooltip":{"show":false}},{"name":"重庆市","data":[{"value":20066.3},{"value":21588.8},{"value":23605.8},{"value":25041.4},{"value":27894}],"type":"bar","barWidth":16,"xAxisIndex":0,"itemStyle":{"color":"#4AB8FF","borderWidth":0},"tooltip":{},"emphasis":{"label":{"color":"#4AB8FF","show":false}}},{"name":"上海市","data":[{"value":32925},{"value":36011.8},{"value":37987.6},{"value":38963.3},{"value":43214.9}],"type":"line","smooth":true,"symbol":"circle","symbolSize":2,"markPoint":{"clickable":false,"large":false,"data":[{"coord":[1,34468.4],"symbolOffset":["-50%",10],"value":"9.38%","label":{"color":" red","backgroundColor":"transparent"},"itemStyle":{"color":"transparent"},"symbol":"triangle"},{"coord":[2,36999.7],"symbolOffset":["-50%",10],"value":"5.49%","label":{"color":" red","backgroundColor":"transparent"},"itemStyle":{"color":"transparent"},"symbol":"triangle"},{"coord":[3,38475.45],"symbolOffset":["-50%",10],"value":"2.57%","label":{"color":" red","backgroundColor":"transparent"},"itemStyle":{"color":"transparent"},"symbol":"triangle"},{"coord":[4,41089.100000000006],"symbolOffset":["-50%",10],"value":"10.91%","label":{"color":" red","backgroundColor":"transparent"},"itemStyle":{"color":"transparent"},"symbol":"triangle"},{"coord":[5,null],"symbolOffset":["-50%",10],"value":"","label":{"color":" red","backgroundColor":"transparent"},"itemStyle":{"color":"transparent"},"symbol":"triangle"}]},"itemStyle":{"color":"#26C8A7"},"tooltip":{"show":false}},{"name":"上海市","data":[{"value":32925},{"value":36011.8},{"value":37987.6},{"value":38963.3},{"value":43214.9}],"type":"bar","barWidth":16,"xAxisIndex":0,"itemStyle":{"color":"#26C8A7","borderWidth":0},"tooltip":{},"emphasis":{"label":{"color":"#26C8A7","show":false}}}]} https://echarts.apache.org/examples/en/editor.html?c=mix-line-bar Safari doesn't display properly, Google does
Launching lib/main.dart on sdk gphone64 arm64 in debug mode... Running Gradle task 'assembleDebug'... ✓ Built build/app/outputs/flutter-apk/app-debug.apk. Debug service listening on ws://127.0.0.1:59859/_2JOl-2dy-4=/ws Syncing files to device sdk gphone64 arm64... I/WebViewFactory(20877): Loading...
When I use Echarts on some android models, the tooltip doesn't show up, only when Echarts are about a third of the way up the screen
How to call a dart function inside the option string with parameters? I tried the standard @JS way but it doesn't work. The function is never called. Example: ``` option:...
https://user-images.githubusercontent.com/101480420/200495744-52c99e7e-bf21-4112-943b-960de7132548.mp4