You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the charts component from Tw-Elements and have found a way to initialize the chart using data attributes. Below is an example of the HTML code I am using:
import {
Chart,
initTWE,
} from "tw-elements/js/chart.es.min.js";
initTWE({ Chart });
However, I would like to know how to configure options, such as disabling the legend display with legend.display = false.
Is there a way to set these options using data attributes, or do I need to configure the options through JavaScript after initialization? If so, could you please provide an example of how to do that?
Thank you for your help!
The text was updated successfully, but these errors were encountered:
Hi @memiljamel , there is no data attribute available for this option. You need to configure it through JavaScript. Configure options object like below to disable the legend display:
Hello,
I am using the charts component from Tw-Elements and have found a way to initialize the chart using data attributes. Below is an example of the HTML code I am using:
For chart initialization, I am using:
However, I would like to know how to configure options, such as disabling the legend display with
legend.display = false.
Is there a way to set these options using data attributes, or do I need to configure the options through JavaScript after initialization? If so, could you please provide an example of how to do that?
Thank you for your help!
The text was updated successfully, but these errors were encountered: