mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-27 20:30:07 +01:00
feat: Chart first step
This commit is contained in:
1 parent
bc839a7ab7
commit
d75fff58c7
25 files changed
+291189
-4
No files matched your search
@@ -0,0 +1,29 @@
|
||||
var eChartsInterop = eChartsInterop || {};
|
||||
|
||||
eChartsInterop.BuildBarChart = function (elementId) {
|
||||
// based on prepared DOM, initialize echarts instance
|
||||
var myChart = echarts.init(document.getElementById(elementId));
|
||||
|
||||
// specify chart configuration item and data
|
||||
var option = {
|
||||
title: {
|
||||
text: 'ECharts entry example'
|
||||
},
|
||||
tooltip: {},
|
||||
legend: {
|
||||
data: ['Sales']
|
||||
},
|
||||
xAxis: {
|
||||
data: ["shirt", "cardign", "chiffon shirt", "pants", "heels", "socks"]
|
||||
},
|
||||
yAxis: {},
|
||||
series: [{
|
||||
name: 'Sales',
|
||||
type: 'bar',
|
||||
data: [5, 20, 36, 10, 10, 20]
|
||||
}]
|
||||
};
|
||||
|
||||
// use configuration item and data specified to show chart
|
||||
myChart.setOption(option);
|
||||
};
|
||||
Reference in new issue
Block a user