Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Highcharts.chart('container', {
- chart: {
- type: 'bar'
- },
- title: {
- text: ''
- },
- credits: {
- enabled: false
- },
- exporting: {
- enabled: false
- },
- plotOptions: {
- bar: {
- color: '#8FBEFF'
- },
- series: {
- dataLabels: {
- enabled: true,
- color: '#666',
- fontSize: '11px',
- fontWeight: '100'
- }
- }
- },
- xAxis: {
- type: 'category',
- lineWidth: 1,
- lineColor: '#ddd',
- tickWidth: 0,
- },
- yAxis: {
- title: {
- text: '时长',
- align: 'high',
- y: -35
- },
- lineWidth: 1,
- lineColor: '#ddd',
- gridLineWidth: 0,
- tickInterval: 50,
- min: 0,
- max: 350,
- showLastLabel: false, // 不显示最后一个轴标签
- },
- series: [{
- dataLabels: [{
- align: 'left',
- format: '{y}'
- }],
- data: [{
- y: 113,
- name: '学习包',
- }, {
- y: 300,
- name: '直播课程',
- }, {
- y: 100,
- name: '微课',
- }, {
- y: 20,
- name: '课件',
- }, {
- y: 30,
- name: '导学案',
- }, {
- y: 120,
- name: '习题',
- }],
- showInLegend: false
- }]
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement