UNPKG

ni-webcharts-legends

Version:
34 lines (24 loc) 1.19 kB
## ni-cursor-legend > A custom element that provides a cursor legend. Use it to visualize, add, remove and configure cursors. It can be attached to a graph or chart element. It provides a list with all the cursors of the graphs and a way to add/remove cursors. Example: ```html <ni-cartesian-graph graph-ref="g1" value="[[2, 3, 5, 7, 11, 13, 17, 19], [0, 1, 1, 2, 3, 5, 8, 13]]"> <ni-cartesian-axis show label="Index" axis-position="bottom"></ni-cartesian-axis> <ni-cartesian-axis show label="Value" axis-position="left"></ni-cartesian-axis> <ni-cartesian-plot show label="Prime Numbers"> <ni-cartesian-plot-renderer line-width="2" line-stroke="red"> </ni-cartesian-plot-renderer> </ni-cartesian-plot> <ni-cartesian-plot show label="Fibonacci Numbers"> <ni-cartesian-plot-renderer line-width="2" line-stroke="blue"> </ni-cartesian-plot-renderer> </ni-cartesian-plot> </ni-cartesian-graph> <ni-cursor-legend graph-ref="g1" mode="pan"></ni-cursor-legend> ``` ### ni-cursor-legend properties **graph-ref** - the graph id to connect to. Default: '' **is-in-edit-mode** - makes the legend non-interactive