Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xkeys 'undefined' #17

Open
mailnike opened this issue Mar 24, 2019 · 2 comments
Open

Xkeys 'undefined' #17

mailnike opened this issue Mar 24, 2019 · 2 comments

Comments

@mailnike
Copy link

I have copied example as it is but my Xkeys are still showed as 'undefined' . Everything else is perfect. Any idea how to fix this?

image

@bbonnin
Copy link
Owner

bbonnin commented Mar 24, 2019

Hi,
Could you provide some examples of your code, please?

@anamarquezz
Copy link

anamarquezz commented Sep 9, 2019

Hi !
Maybe you forgot to add some properties in the HTML

this is a complete example,

<bar-chart id="bar" :data=data :xkey=xkye :ykeys=ykeys :bar-colors=barcolors :labels=labels   :grid-text-weight=gridtextweight :grid=grid :resize=resize ></bar-chart>
 data() {
    return {     
      xkye: "year",
      ykeys: ["and", "ios", "win"],
      barcolors: ["blue", "purple", "pink"],
      labels: ["and", "ios", "win"],
      grid: "false",
      resize: "true",
      gridtextweight: "bold",
      data: [
        { year: "2013", and: 10, ios: 5, win: 2 },
        { year: "2014", and: 10, ios: 15, win: 3 },
        { year: "2015", and: 20, ios: 25, win: 2 },
        { year: "2016", and: 30, ios: 20, win: 1 }
      ]
    };

.```

in the image of the documentation ist not defined the properti labels.

[image](https://user-images.githubusercontent.com/12877909/64544899-aedf0400-d2dc-11e9-8a22-085498ad3f8e.png)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants