superman66 / vue-highcharts

The Component of Vue 2.x for highcharts
https://codesandbox.io/s/jjyqvv0k13
MIT License
115 stars 48 forks source link

NuxtJs - Can't load module #42

Open Geminii opened 6 years ago

Geminii commented 6 years ago

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 :)

superman66 commented 6 years ago

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

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

I also update demo in vue-nuxt-demo.

Geminii commented 6 years ago

@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 :)

superman66 commented 6 years ago

vue-highcharts seems to does't support HighMaps

Geminii commented 6 years ago

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 ?

superman66 commented 6 years ago

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