Forum Replies Created by Wesley Stewart

Viewing 3 posts - 1 through 3 (of 3 total)
  • in reply to: mouseover help #28194

    Gotcha,

    So currently it’s not possible?

    Thanks for the replies! I have been enjoying CanvasJS.

    in reply to: mouseover help #28175

    Looks like things are, in fact, mostly working as intended.

    However, is it possible to make it so the “mouseover” function triggers anywhere on the line, not just the datapoint itself?
    https://jsfiddle.net/4uodvpf2/

    My goal is to try and highlight the area of a table whose data is represented by said line. This would seem to work best whenever mousing over any part of the line.

    in reply to: mouseover help #28164

    So, I am getting a weird thing on my line graphs, where When I initially mouseover the line, it does nothing, but when I move to another point, then it fires off.

    However, another part of my problem was I did not want ID, I needed to do this by the object class:

    mouseover: function color() {
    var elements = document.getElementsByClassName(‘test’); // get all elements
    for(var i = 0; i < elements.length; i++){
    elements[i].style.backgroundColor = “red”;
    }
    },

    end result for your bar graph can be seen here:
    https://jsfiddle.net/h28xmnfy/

    Will do some more testing and get back to everyone. Thanks for the quick response!

Viewing 3 posts - 1 through 3 (of 3 total)