Is an NVD3 Line Plot with Markers Possible?

前端 未结 5 1301
野趣味
野趣味 2020-12-14 02:52

I\'m making an NVD3 line plot that will have significantly improved clarity if I can get markers to show for each data point instead of just the line itself. Unfortunately,

5条回答
  •  悲&欢浪女
    2020-12-14 03:19

    The current version of nvd3 use path instead of circle to draw markers. Here is a piece of css code that i used to show markers.

    #chart g.nv-scatter g.nv-series-0 path.nv-point
    {
        fill-opacity: 1;
        stroke-opacity: 1;
    }
    

    And I also write something about this in https://github.com/novus/nvd3/issues/321, you could find that how i change the shape of makers.

    I don't know how to change the size of markers. Trying to find a solution.

提交回复
热议问题