Giter VIP home page Giter VIP logo

fusioncharts / vue-fusioncharts Goto Github PK

View Code? Open in Web Editor NEW
88.0 16.0 31.0 17.01 MB

Vue Component for FusionCharts JavaScript Charting Library

Home Page: https://fusioncharts.github.io/vue-fusioncharts/

License: MIT License

JavaScript 97.79% HTML 0.09% Vue 1.74% CSS 0.38%
vue vue-fusioncharts-component vue-fusioncharts fusioncharts javascript-charts interactive-charts charts visualization data-visualization dataviz

vue-fusioncharts's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vue-fusioncharts's Issues

Single File Components 'No data to display'

I'm using vue-fusioncharts with a single file component structure (utilizing webpack). I've followed the instructions on how to include fusioncharts in the app (https://www.fusioncharts.com/vue-fusioncharts/) and continue to get 'No data to display'. The only thing unique that I'm doing, different from the examples, is that the data is being included within a component and not on the Vue instance itself..

the main.js file:

import Vue from 'vue';
import VueFusionCharts from 'vue-fusioncharts';
import FusionCharts from 'fusioncharts';
import Charts from 'fusioncharts/fusioncharts.charts';
import App from './App';
import router from './router';
import store from './store';

// resolve charts dependency
Charts(FusionCharts);

// register VueFusionCharts component
Vue.use(VueFusionCharts);

// Require the main Sass manifest file
require('./assets/sass/main.sass');

Vue.config.productionTip = false;

/* eslint-disable no-new */
new Vue({
  el: '#app',
  store, // inject store to all children
  router,
  template: '<App/>',
  components: { App },
});

the component file

...
    fusioncharts(:type='type', :width='width', :height='height', :dataFormat='dataFormat', :dataSource='dataSource')
</template>

<script>
const myDataSource = {
  'chart': {
    'caption': 'Age profile of website visitors',
    'subcaption': 'Last Year',
    'theme': 'ocean',
  },
  'data': [
    {
      'label': 'Teenage',
      'value': '1250400',
    },
    {
      'label': 'Adult',
      'value': '1463300',
    },
    {
      'label': 'Mid-age',
      'value': '1050700',
    },
    {
      'label': 'Senior',
      'value': '491000',
    },
  ],
};

export default {
  name: 'track-progress',
  data() {
    return {
      type: 'column2d',
      width: '500',
      height: '300',
      dataFormat: 'json',
      dataSource: myDataSource,
    };
  },
};
</script>
...

I've looked at similar issues, but no luck and so far no solution regarding single file components.. any help would be appreciated!

Double loading vue with message You are running Vue in development mode.

2020-08-09

`import VueFusionCharts from 'vue-fusioncharts';
import FusionCharts from 'fusioncharts';
import Charts from 'fusioncharts/fusioncharts.charts';
import FusionTheme from 'fusioncharts/themes/fusioncharts.theme.fusion';

Vue.use(VueFusionCharts, FusionCharts, Charts, FusionTheme);`

When I commented this code Vue working as expected.

Error: <text> attribute x: Expected length, "NaN"

When the chart data value is the 0 then fusion chart gives an error like Error: <text> attribute x: Expected length, "NaN".

[{
        "label": "Chart title",
        "value": 0
    },
    {
        "label": "Chart title",
        "value": 0
}]

Vue keep-alive not works with fusioncharts?

Hello, I'm trying to apply keep-alive attribute on my Vue (nuxt.js) application. Looks like it's impossible? Every time I change the page and returning back to the one with the charts, they're gone. There is no errors printed in console or anything else that can indicate what the issue might be.

Is that possible to run fusioncharts on keep alive mode?

Vue 3

Is there any plan to support vue 3?

How can I import fusioncharts in small parts?

Hey,

I just found out the package is huge (up to 1.4MB) and we're not using all of it, only 3 types.
I couldn't figure out how to import only the usable parts and reduce the total bundle size.

Could you please guide me on how to properly import per usage base?

dataEmptyMessageFontSize doesn't exist

Hello,
I'm using fusionchart for a view project and I followed the fusioncharts documentation for the properties you can add and the "dataEmptyMessageFontSize" property doesn't work, so I go to your project and when I see in the configuration file, the dataEmptyMessageFontSize property is not present.
Is this normal?

Do Text Annotations Work With Vue?

I am using fusiontime bar charts which are working beautifully. I also added extensions and those are working as well. However adding annotations causes the chart components to revert to undefined and the chart does not render. Are text annotations supported in vue? Thanks.

'Chart type not supported' message while using multilevelpie

HI,
i am trying to use the multilevelpie example from the website with cue-fusioncharts. I keep getting the chart type not supported message. The vue based example given here-link seems not functional. I first was getting can't initiate fusions charts without 'new' when tried to use Vue.use(fusion charts). After following your example on the GitHub,

let vFC = VueFCComponent(FusionCharts, Charts);
Vue.component('fusioncharts', vFC);

I was able to load the page without error, but the started getting chart type not supported message? Does this mean the VueFCComponent doesn't support this chart type?

VueJs Web Component build

I am trying to build a chart using VueJS web component:

vue-cli-service build --target wc --inline-vue --name my-app ./src/App.vue --env=production

This command produces the following files on dist:

image

However when I see dist.html on the browser I get:

image

I suspect the problem is with shadow dom:

image

When it tries to get the element to render the chart it fails due to shadow dom VueJS WC build produces.

When run yarn serve app is working fine but does not produce shadow DOM:

image

Do you think shadow DOM bugs fusion charts? Is there a workaround? Do I miss something there?

html tag span not working in data labels

I use the 3.18.0 library
I'm using the type chart: column2d
I used the HTML span tag in the data label, but the functionality is not applied in the data label. The functionality is applied in the tooltip

image

Using Vue.component throws an error

When I try to use

import VueFusionCharts from 'vue-fusioncharts';
import FusionCharts from 'fusioncharts/core';
import MSLine from 'fusioncharts/viz/msline';

Vue.component('fusioncharts', VueFusionCharts, FusionCharts, MSLine);

in my component, in the console.log I have an error:
image

The error is pointing in the node-modules\vue-fusioncharts\src\index.js in the install function:

const install = (Vue, FC, ...options) => {
    options && options.forEach && options.forEach((modules) => {
        addDep(FC, _FC, modules);
    });
    let component = _FCComponent(FC);

    Vue.component(component.name, component);
};

Also when I console.log the Vue.component in the install function it says that it's undefined:

const install = (Vue, FC, ...options) => {
    options && options.forEach && options.forEach((modules) => {
        addDep(FC, _FC, modules);
    });
    let component = _FCComponent(FC);
    console.log('vue-fusioncharts', Vue.component); // my console.log
    Vue.component(component.name, component);
};

image

Another problem is that when I try to import { FCComponent }, the npm can't find it.
import { FCComponent } from 'vue-fusioncharts';
image

renderAt not supported

Since renderAt is not supported I need to wrap my chart in a div with an ID fc-1 after an update my page re-renders but the fusion graph changes it's id so it tried to re-render in a div with ID fd-2. How can I specify the container element?

Events for time navigator

I want to make an API call and update other data once someone selects a range using time navigator. Where can I find the event for that and how to trigger a function call on it?

Weird Documentation:issue

Best JavaScript Chart Library but the worst documentation ever wasting 4 hours in the doc examples still nothings works, registration component locally but y did globally, error saying using new keyword while what i did its just a simple copy past..., i mean VueDoc

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.