Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- fullData: data,
- chart_height: '400px',
- tooltip : {
- trigger: 'axis'
- },
- grid: {
- x: 60,
- x2: 1,
- y: 50,
- y2: 50
- },
- xAxis: [
- {
- type: 'category',
- show: true,
- data: data.months
- }
- ],
- legend: {
- data:['Actual', 'Budget']
- },
- yAxis: [
- {
- type: 'value',
- show: true,
- name: 'USD'
- }
- ],
- series: [
- {
- name: 'Actual',
- type: 'line',
- itemStyle: {
- normal: {
- color: color.actual,
- label: {
- show: true
- }
- }
- },
- data: data.actual
- },
- {
- name: 'Budget',
- type: 'line',
- itemStyle: {
- normal: {
- color: color.budget,
- label: {
- show: true,
- position: 'bottom'
- }
- }
- },
- data: data.budget
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement