Skip to content

Commit ee8c551

Browse files
committed
add usage of highcharts-more
1 parent 2045402 commit ee8c551

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,22 @@ import Vue from 'vue';
3939
import VueHighcharts from 'vue-highcharts';
4040
import Highcharts from 'highcharts';
4141

42+
// load these modules as your need
4243
import loadStock from 'highcharts/modules/stock';
4344
import loadMap from 'highcharts/modules/map';
4445
import loadDrilldown from 'highcharts/modules/drilldown';
46+
// some charts like solid gauge require `highcharts-more.js`, you can find it in official demo.
47+
import loadHighchartsMore from 'highcharts/highcharts-more';
48+
import loadSolidGauge from 'highcharts/modules/solid-gauge';
4549

4650
loadStock(Highcharts);
4751
loadMap(Highcharts);
48-
loadDrillDown(Highcharts);
52+
loadDrilldown(Highcharts);
53+
loadHighchartsMore(Highcharts);
54+
loadSolidGauge(Highcharts);
4955

5056
Vue.use(VueHighcharts, { Highcharts });
51-
// Now you can use Highstock, Highmaps and drilldown.
57+
// Now you can use Highstock, Highmaps, drilldown and solid gauge.
5258
```
5359

5460
Then you can use the components in your template.

0 commit comments

Comments
 (0)