Home forums Using CanvasJS Changing markerSize on hover for Area chart

This topic contains 1 reply, has 2 voices, and was last updated by  Vishwas R 2 months, 4 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #20781

    brian2304
    Member

    Hello,
    I have an area chart and I’d like for markers to be hidden by default, but displayed with a custom markerSize when tooltip is visible.

    Unfortunately it looks like the api makes it impossible because:
    1. “markerSize” has to be set to “0” in order to hide markers by default(which is unintuitive to be honest, an option like “showByDefault” would make it a non-issue)
    2. there is no event for when tooltip is displayed
    3. mouseover and mousemove events only trigger for the line, not for the entire area unlike the event tooltips use internally

    Here’s the example:
    http://jsfiddle.net/1nkkanot/1/

    Did I miss something or is it not possible to achieve?
    Thank you.

    #20784

    Vishwas R
    Keymaster

    @brian2304,

    Sorry, this feature is not available as of now. However setting markerSize to ‘0’ will make marker to be visible only on mouseover with default size. Please take a look at this jsfiddle.


    Vishwas R
    Team CanvasJS

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

You must be logged in to reply to this topic.