pub fn create_chart_with_data(
chart_type: &str,
data_json: &str,
x: f32,
y: f32,
width: f32,
height: f32,
) -> Result<String, JsValue>Expand description
Create a chart element JSON with custom data.
ยงErrors
Returns an error if the data JSON is invalid.