Currently, some charts import g-chartcolour as follows:
import gChartColour from 'g-chartcolour';
This works fine using d3-bootloader but makes interoperability with other build systems difficult, given that g-chartcolour just exports each scale instead of collecting them as a default export. Instead, the following syntax is more accurate:
import * as gChartColour from 'g-chartcolour';
Currently, some charts import g-chartcolour as follows:
This works fine using d3-bootloader but makes interoperability with other build systems difficult, given that g-chartcolour just exports each scale instead of collecting them as a default export. Instead, the following syntax is more accurate: