[BUG] style.chart.dataLabel.formatter 配置无效 (VueUi3dBar) #192
Labels
bug : config
Config is not working properly
Content-Length: 231402 | pFad | https://github.com/graphieros/vue-data-ui/issues/192
D3Fetched URL: https://github.com/graphieros/vue-data-ui/issues/192
Alternative Proxies:
{
theme: '',
customPalette: [],
style: {
fontFamily: 'inherit',
shape: 'tube',
chart: {
animation: {
use: true,
speed: 1,
acceleration: 1
},
backgroundColor: '#ffffff00',
color: '#1A1A1Aff',
bar: {
color: '#808080ff',
stroke: '#6376dd00',
strokeWidth: 0,
shadeColor: '#2D353C'
},
box: {
stroke: '#808080ff',
strokeWidth: 0.9999999999999999,
strokeDasharray: 0,
dimensions: {
width: 180,
height: 260,
top: 0,
bottom: 9,
left: 0,
right: 0,
perspective: 18
}
},
title: {
text: 'Title',
color: '#d3d3d3ff',
fontSize: 16,
bold: true,
textAlign: 'left',
paddingLeft: 0,
paddingRight: 0,
subtitle: {
color: '#A1A1A1ff',
text: 'Value: 20',
fontSize: 16,
bold: false
}
},
legend: {
showDefault: false,
fontSize: 10,
color: '#1A1A1Aff',
bold: false,
roundingValue: 0,
roundingPercentage: 0,
prefix: '',
suffix: '',
hideUnderPercentage: 0
},
dataLabel: {
show: true,
bold: false,
color: '#000000ff',
fontSize: 12,
rounding: 0,
formatter: ({value,config})=>{
return '1234';
}
}
}
},
userOptions: {
show: false,
showOnChartHover: false,
keepStateOnChartLeave: false,
position: 'right',
buttons: {
tooltip: false,
pdf: true,
csv: true,
img: true,
table: true,
labels: false,
fullscreen: true,
sort: false,
stack: false,
animation: false,
annotator: true
},
buttonTitles: {
open: 'Open options',
close: 'Close options',
pdf: 'Download PDF',
csv: 'Download CSV',
img: 'Download PNG',
table: 'Toggle table',
fullscreen: 'Toggle fullscreen',
annotator: 'Toggle annotator'
},
print: {
allowTaint: false,
backgroundColor: '#FFFFFFff',
useCORS: false,
onclone: null,
scale: 2,
logging: false
}
},
table: {
show: false,
responsiveBreakpoint: 400,
columnNames: {
series: 'Series',
value: 'Value',
percentage: 'Percentage'
},
th: {
backgroundColor: '#FFFFFFff',
color: '#1A1A1Aff',
outline: 'none'
},
td: {
backgroundColor: '#FFFFFFff',
color: '#1A1A1Aff',
outline: 'none',
roundingValue: 0,
roundingPercentage: 0
}
}
The text was updated successfully, but these errors were encountered: