Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Values in legend not shown when rendering picture from chart #752

Open
TicoM1 opened this issue Dec 8, 2024 · 0 comments
Open

Values in legend not shown when rendering picture from chart #752

TicoM1 opened this issue Dec 8, 2024 · 0 comments

Comments

@TicoM1
Copy link

TicoM1 commented Dec 8, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant