MCPcopy
hub / github.com/apache/echarts / init

Function init

test/types/no-module/main.ts:23–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21*/
22
23function init() {
24 var myChart = echarts.init(document.getElementById('chart0'));
25
26 const option: echarts.EChartsOption = {
27 title: {
28 text: 'ECharts Getting Started Example'
29 },
30 tooltip: {},
31 xAxis: {
32 data: ['a', 'b', 'c', 'd', 'e', 'f']
33 },
34 yAxis: {},
35 series: [{
36 type: 'bar',
37 data: [5, 20, 36, 10, 10, 20]
38 }]
39 };
40
41 myChart.setOption(option);
42}
43
44init();

Callers 1

main.tsFile · 0.70

Calls 2

initMethod · 0.45
setOptionMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…