|
| 1 | +function anim_0110_0100(chart) { |
| 2 | + |
| 3 | + return chart.animate({ |
| 4 | + config: { |
| 5 | + channels: { |
| 6 | + y: { set: ['$count'], range: { min: '0%', max: '110%' } }, |
| 7 | + x: { set: ['Language'] }, |
| 8 | + label: { set: ['$count'] }, |
| 9 | + color: { set: ['Language'] } |
| 10 | + }, |
| 11 | + title: null, // '10 File count + types 2', |
| 12 | + sort: 'byValue', |
| 13 | + legend: null, |
| 14 | + reverse: true, |
| 15 | + }, |
| 16 | + style: { |
| 17 | + plot: { |
| 18 | + paddingLeft: '9em', |
| 19 | + marker: { label: { position: 'top' } }, |
| 20 | + xAxis: { label: { angle: -0.7 } } |
| 21 | + } |
| 22 | + } |
| 23 | + }, |
| 24 | + { duration: 0.1 } |
| 25 | + ) |
| 26 | + |
| 27 | + .then(chart => chart.animate({ |
| 28 | + config: { |
| 29 | + channels: { |
| 30 | + y: { set: ['$count', 'File name'], range: { min: '0%', max: '110%' } }, |
| 31 | + x: { set: ['Language'] }, |
| 32 | + color: { set: ['Language'] }, |
| 33 | + label: { set: null }, |
| 34 | + }, |
| 35 | + title: null, // '11 File count + type 3', |
| 36 | + sort: 'byValue', |
| 37 | + legend: null, |
| 38 | + reverse: true, |
| 39 | + }, |
| 40 | + style: { |
| 41 | + plot: { |
| 42 | + paddingLeft: '9em', |
| 43 | + marker: { label: { position: 'top' } }, |
| 44 | + xAxis: { label: { angle: -0.7 } } |
| 45 | + } |
| 46 | + } |
| 47 | + }, |
| 48 | + { duration: 0.5 } |
| 49 | + )) |
| 50 | + |
| 51 | + .then(chart => chart.animate({ |
| 52 | + config: { |
| 53 | + channels: { |
| 54 | + y: { set: ['$count', 'Language', 'File name'], range: { min: '0%', max: '100%' } }, |
| 55 | + x: { set: null }, |
| 56 | + label: { set: null }, |
| 57 | + color: { set: ['Language'] } |
| 58 | + }, |
| 59 | + title: null, // '12 File count 1', |
| 60 | + legend: null |
| 61 | + }, |
| 62 | + style: { |
| 63 | + plot: { |
| 64 | + paddingLeft: '9em', |
| 65 | + marker: { label: { position: 'center' } }, |
| 66 | + xAxis: { label: { angle: -0.7 } } |
| 67 | + } |
| 68 | + } |
| 69 | + }, |
| 70 | + { duration: 2 } |
| 71 | + )) |
| 72 | + |
| 73 | + .then(chart => chart.animate({ |
| 74 | + config: { |
| 75 | + channels: { |
| 76 | + y: { set: ['$count'], range: { min: '0%', max: '100%' } }, |
| 77 | + x: { set: null }, |
| 78 | + color: { set: null }, |
| 79 | + label: { set: ['$count'] }, |
| 80 | + }, |
| 81 | + title: null, // '13 File count 2', |
| 82 | + legend: null |
| 83 | + }, |
| 84 | + style: { |
| 85 | + plot: { |
| 86 | + paddingLeft: '9em', |
| 87 | + marker: { label: { position: 'center' } }, |
| 88 | + xAxis: { label: { angle: -0.7 } } |
| 89 | + } |
| 90 | + } |
| 91 | + }, |
| 92 | + { duration: 0.5 } |
| 93 | + )); |
| 94 | +} |
0 commit comments