Skip to content

Instantly share code, notes, and snippets.

@strugglebak
Created May 9, 2019 08:18
Show Gist options
  • Select an option

  • Save strugglebak/957fa78d39ce38b96ec1f70a1871e07c to your computer and use it in GitHub Desktop.

Select an option

Save strugglebak/957fa78d39ce38b96ec1f70a1871e07c to your computer and use it in GitHub Desktop.
hightchart js demo: hc-column-demo2
Highcharts.chart('container',{
chart: {
type: 'column'
},
title: {
text: ''
},
credits: {
enabled: false
},
exporting: {
enabled: false
},
colors: ['#388CFF'],
legend: {
enabled: false
},
plotOptions: {
column: {
dataLabels: {
enabled: true,
},
}
},
xAxis: {
categories: ['3.25', '3.26', '3.27', '3.28', '3.29'],
lineColor: '#ddd',
},
yAxis: {
title: {
text: ''
},
lineWidth: 1,
lineColor: '#ddd',
gridLineWidth: 0,
min: 0,
tickInterval: 15,
},
series: [{
name: '小张',
data: [50, 60, 30, 45, 35]
}]
});
@strugglebak
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment