How to modify sub properties in dynamic charts

I am using the nocode chart builder. I would like to modify the fontSize or any other sub property

I know i can change title by sending &title=new text in the url. But i’ve also tried sending something like &titleFontSize=40 and &data1Color=purple and these dont change the ‘sub properties’.

Changing the data array and chart title is easy enough. do we have access to the other properties when we’ve made the chart api template?

Hi Jared,

Currently this isn’t possible using the no-code template API. Replacing title and data are common operations, but we haven’t added query parameters for every sub-option.

If you want to heavily customize parts of your chart, it may be best to use the standard API instead of the no-code API. It will require you to edit a JSON config, though.

You can export your no-code chart to a Chart.js config by adding ?format=raw to your no-code endpoint.
For example:

https://quickchart.io/chart/render/9a560ba4-ab71-4d1e-89ea-ce4741e9d232
becomes
https://quickchart.io/chart/render/9a560ba4-ab71-4d1e-89ea-ce4741e9d232?format=raw

Then, extract the “chart” value from the raw JSON:

{"type":"bar","data":{"labels":["Hello","World"],"datasets":[{"label":"Foo","data":[1,2]}]}}

This can be pasted directly into the chart sandbox to try out different customization options (you can use a formatter to make the JSON more readable).

When you generate the chart URL in your app, you can override data, title, colors, and any other option to look how you want.

Hope this helps, but also happy to help out with a specific example.

2 Likes

This makes sense. Thank you!

This is great :+1:
I tried the Chart Maker several months ago, but I ended up going back to the sandbox editor because I couldn’t see any obvious way to modify a template.

EXACTLY what i was looking for. thank you!

We’ve just added an “Export chart to full editor” button under the Advanced tab:

This should make things a bit easier!

1 Like