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?
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:
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.
This is great
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.
I just gave this a try, and found that all of the double-quotes are escaped in the generated JSON, which causes it to break when pasted into the sandbox. Here is what it looks like: