| | |
| | | if (plot.show === 'percent') { |
| | | value = value + '%' |
| | | } |
| | | if (plot.labelUnit) { |
| | | value = value + plot.labelUnit |
| | | } |
| | | let _color = color |
| | | |
| | | if (plot.labelColor === 'custom' && colors.has(key)) { |
| | |
| | | if (plot.show === 'percent') { |
| | | value = value + '%' |
| | | } |
| | | if (plot.labelUnit) { |
| | | value = value + plot.labelUnit |
| | | } |
| | | |
| | | if (label === 'true' && plot.labelColor === 'custom' && colors.has(key)) { |
| | | lablecfg.style.fill = colors.get(key) |
| | |
| | | _chart.label('value*key', (value, key) => { |
| | | if (plot.show === 'percent') { |
| | | value = value + '%' |
| | | } |
| | | if (plot.labelUnit) { |
| | | value = value + plot.labelUnit |
| | | } |
| | | |
| | | if (label === 'true' && plot.labelColor === 'custom' && colors.has(key)) { |
| | |
| | | if (item.show === 'percent') { |
| | | value = value + '%' |
| | | } |
| | | if (plot.labelUnit) { |
| | | value = value + plot.labelUnit |
| | | } |
| | | |
| | | if (plot.label === 'true' && plot.labelColor === 'custom') { |
| | | lablecfg.style.fill = item.color |
| | |
| | | _chart.label(item.name, (value) => { |
| | | if (item.show === 'percent') { |
| | | value = value + '%' |
| | | } |
| | | if (plot.labelUnit) { |
| | | value = value + plot.labelUnit |
| | | } |
| | | let _color = color |
| | | |
| | |
| | | if (plot.grid === 'hidden') { |
| | | yc.grid = null |
| | | } |
| | | if (plot.y_line === 'show') { |
| | | if (plot.tick === 'hidden') { |
| | | xc.tickLine = null |
| | | } |
| | | if (plot.x_line === 'hidden') { |
| | | xc.line = null |
| | | } |
| | | if (plot.y_line === 'hidden') { |
| | | yc.line = null |
| | | } else { |
| | | yc.line = {style: { stroke: '#D1D2CE' }} |
| | | } |
| | | if (plot.x_label === 'hidden') { |
| | | xc.label = null |
| | | } |
| | | if (plot.y_label === 'hidden') { |
| | | yc.label = null |
| | | } |
| | | |
| | | if (plot.lineColor) { |
| | | xc.tickLine = {style: { stroke: plot.lineColor }} |
| | | xc.line = { style: { stroke: plot.lineColor } } |
| | | if (xc.tickLine !== null) { |
| | | xc.tickLine = {style: { stroke: plot.lineColor }} |
| | | } |
| | | if (xc.line !== null) { |
| | | xc.line = { style: { stroke: plot.lineColor } } |
| | | } |
| | | if (yc.grid !== null) { |
| | | yc.grid = { line: { style: { stroke: plot.lineColor } }} |
| | | } |
| | |
| | | if (plot.show === 'percent') { |
| | | value = value + '%' |
| | | } |
| | | if (plot.labelUnit) { |
| | | value = value + plot.labelUnit |
| | | } |
| | | |
| | | if (plot.label === 'true' && plot.labelColor === 'custom' && colors.has(key)) { |
| | | lablecfg.style.fill = colors.get(key) |
| | |
| | | if (plot.show === 'percent') { |
| | | value = value + '%' |
| | | } |
| | | if (plot.labelUnit) { |
| | | value = value + plot.labelUnit |
| | | } |
| | | |
| | | if (plot.label === 'true' && plot.labelColor === 'custom' && colors.has(key)) { |
| | | lablecfg.style.fill = colors.get(key) |