vue-highcharts icon indicating copy to clipboard operation
vue-highcharts copied to clipboard

NuxtJs - Can't load module

Open Geminii opened this issue 6 years ago • 5 comments

Hi again, I try to load module like Exporting or Maps but it's not working.

import Exporting from 'highcharts/modules/exporting' import Drilldown from 'highcharts/modules/drilldown' import Highcharts from 'highcharts' // Load Drilldown module Drilldown(Highcharts); // Load Exporting module Exporting(Highcharts);

On my project, i need to create Highcharts, Highmaps graphs. I try the same things on your projet vue-nuxt-demo and got the same problem to load modules. The import works but not the loading.

How can i do this ? Maybe you can add some example to do this ?

Thanks a lot for your answer :)

Geminii avatar May 30 '18 11:05 Geminii

I found it works, load Module in mounted():

  mounted() {
    Drilldown(Highcharts)
    Highcharts.setOptions({
      lang: {
        drillUpText: 'back',
      },
    })
  },

I also update demo in vue-nuxt-demo.

superman66 avatar May 30 '18 12:05 superman66

@superman66 i success to fix it too to define highcharts data. Load module map is ok but now i try to create an Highmaps but more difficult. If you have an example to do it, could be pretty cool :) Thanks :)

Geminii avatar May 30 '18 13:05 Geminii

vue-highcharts seems to does't support HighMaps

superman66 avatar May 30 '18 15:05 superman66

yep, i try to understand how it works. And it only works for line / bar etc. But to construct an Highmaps, another method need to be used. Could be nice to add a new feature to implement it like Highstock no ?

Geminii avatar May 30 '18 16:05 Geminii

@Geminii I add highmaps support in the latest version. And I also add highmaps demo in vue-nuxt-demo

superman66 avatar Jun 01 '18 07:06 superman66