kurkle / chartjs-chart-sankey

Chart.js module for creating sankey diagrams
MIT License
152 stars 29 forks source link

customize data structure key/property? #71

Closed aboveyunhai closed 2 years ago

aboveyunhai commented 2 years ago

can we modify the from and to key in the input data structure,

from is sensitive/reserved keyword in sql langauge, to is way too general. Both should be avoided in general. Sql cannot compute this data structure directly due to the naming.

I had tried: https://www.chartjs.org/docs/latest/general/data-structures.html#object-using-custom-properties, but it seems like this lib doesn't support similar behavior.

options {
 parsing: {
    key: `new_key`
 }
}