Skip to content

perspective-viewer-highcharts-lite#1135

Merged
texodus merged 1 commit intomasterfrom
hc-lite
Jul 28, 2020
Merged

perspective-viewer-highcharts-lite#1135
texodus merged 1 commit intomasterfrom
hc-lite

Conversation

@texodus
Copy link
Member

@texodus texodus commented Jul 28, 2020

Adds a new entry point, @finos/perspective-viewer-highcharts/lite, which allows importing this plugin without invoking module side effects prevalent in Highcharts, allowing this plugin to be embedded easily alongside sloppier implementations which also rely on these modules - explained in detail here. In order to use @finos/perspective-viewer-highcharts/lite, these extension module effects will need to be imported and applied, in the correct order:

import highcharts from "highcharts";
import highchartsMore from "highcharts/highcharts-more";
import heatmap from "highcharts/modules/heatmap";
import boost from "highcharts/modules/boost";
import treemap from "highcharts/modules/treemap";
import sunburst from "highcharts/modules/sunburst";
import grouped_categories from "highcharts-grouped-categories";

highchartsMore(highcharts);
heatmap(highcharts);
treemap(highcharts);
sunburst(highcharts);
grouped_categories(highcharts);
boost(highcharts);

Additionally - highcharts modules has been moved to peerDependencies to better reflect the licensing requirements, so be sure to add this to your project's package.json.

"dependencies": {
    "highcharts": "6.1.0"
}

@texodus texodus merged commit 08f761f into master Jul 28, 2020
@texodus texodus deleted the hc-lite branch July 28, 2020 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants