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

Xkeys 'undefined'

Open mailnike opened this issue 5 years ago • 2 comments

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

mailnike avatar Mar 24 '19 07:03 mailnike

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

bbonnin avatar Mar 24 '19 08:03 bbonnin

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)

anamarquezz avatar Sep 09 '19 15:09 anamarquezz