ioBroker.echarts
ioBroker.echarts copied to clipboard
Values in legend not shown when rendering picture from chart
When generating a picture from an e-chart, that shows the current values of variables in the legend, the picture will not show these values.
To Reproduce
- Create an echarts chart with values shown in the legend. The preview in echarts as well as (jar)vis will show the values in the legend.
- Render a picture and for example send it via Telegram to display it
sendTo('echarts.0', {
preset: 'echarts.0.chartWithValuesName',
renderer: 'jpg',
quality: 0.5,
fileOnDisk: '/opt/iobroker/iobroker-data/echarts-temp-photo.jpg'
}, result => {
if (result.error) {
sendTo("telegram.0", "send", { text: result.error });
} else {
sendTo("telegram.0", "send", { text: '/opt/iobroker/iobroker-data/echarts-temp-photo.jpg' });
}
}
Expected behavior
Picture looks the same as the chart.
Versions:
- Adapter version: 1.9.2
- JS-Controller version: 7.0.3
- Node version: 20.18.0
- Operating system: linux