ioBroker.echarts icon indicating copy to clipboard operation
ioBroker.echarts copied to clipboard

Values in legend not shown when rendering picture from chart

Open TicoM1 opened this issue 1 year ago • 0 comments

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

  1. 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.
  2. 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

TicoM1 avatar Dec 08 '24 16:12 TicoM1