When developing Visualization Dashboard plugin in development, I find this fast way to create echarts chart in place:
use echarts widget with Substituted Attribute Values
  <$echarts $text=```
    option = {
    }
    ```/>
make sure to use Triple backticks https://tiddlywiki.com/#Substituted Attribute Values, so you can use $(currentTiddler)$ to use variable.
copy example
Copy from Examples - Apache ECharts
you can directly put
option = {
    series: [
// ..
inside Triple backticks
define functions
Use function to define variables for data
\function days() [{!!targetTiddler}daysbetween[]]
\function dayPercentage() [{!!targetValue}subtract<days>divide{!!targetValue}multiply[100]floor[]]
\function color() [{!!color}]
\function dateString() [{!!targetTiddler}get[endDate]] :else[{!!targetTiddler}get[startDate]] +[format:date[YYYY MMM DD]]
You can also use ${ filter expression }$ syntax inside Triple backticks, but I’m not recomment this, becuase it will make line very long, and you can’t debug by using <<varname>> to see the result.
Use variable
Usually data is inside series.data, this is for graph that only require single data
  <$echarts $text=```
  option = {
    series: [
      {
        data: [{
          value: $(dayPercentage)$,
          name: '$(days)$',
Multiple series JSON data
See Fast create echarts with \function and Triple backticks - #6 by linonetwo below