Hover column graphael

Asked

Viewed 20 times

0

I’m using the graphael bookstore to draw a line chart. I want the mouse to show the two values x and y. In this case I can only show the value of y. How can I show you both? Example: http://jsfiddle.net/aNJxf/18/

.hoverColumn(function () {
    this.tags = r.set();

    for (var i = 0, ii = this.y.length; i < ii; i++) {
        this.tags.push(r.tag(this.x, this.y[i], this.values).insertBefore(this).attr([{ fill: "#fff" }, { fill: this.symbols[i].attr("fill") }]));

    }, function () {
        this.tags && this.tags.remove();
        });
  • In my fiddle is shown correctly. The graph is shown, so I cannot show the values of x and y when I move over the line circles.

  • How can I now see the two x and y values on the Hover label? Because I use this.values in the text and only the y value appears.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.