Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Highcharts.chart('container', {
- chart: {
- type: 'heatmap',
- marginTop: 40,
- marginBottom: 80,
- plotBorderWidth: 1
- },
- title: {
- text: 'Sales per employee per weekday'
- },
- xAxis: {
- },
- yAxis: {
- title: null
- },
- colorAxis: {
- min: 0,
- minColor: '#FFFFFF',
- maxColor: Highcharts.getOptions().colors[0]
- },
- legend: {
- align: 'right',
- layout: 'vertical',
- margin: 0,
- verticalAlign: 'top',
- y: 25,
- symbolHeight: 280
- },
- tooltip: {
- formatter: function () {
- return '<b>' + this.series.xAxis.categories[this.point.x] + '</b> sold <br><b>' +
- this.point.value + '</b> items on <br><b>' + this.series.yAxis.categories[this.point.y] + '</b>';
- }
- },
- series: [{
- name: 'Sales per employee',
- borderWidth: 1,
- data: [[0, 0, 10], [1, 0, 19], [2,0, 8], [3, 0, 24], [4, 0, 67], [5, 0, 2], [6, 0, 16], [7, 0, 10], [8, 0, 5], [9, 0, 50]],
- dataLabels: {
- enabled: true,
- color: '#000000'
- }
- }]
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement