-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Data Attributes
Jackson Marketon edited this page Oct 6, 2015
·
7 revisions
Many charts have special attributes you can add into your data to affect the chart, this page documents those items.
Symbol types to use are: https://github.com/mbostock/d3/wiki/SVG-Shapes#symbol_type, you can also add others via nv.utils.symbolMap, and the map is accessed by nv.utils.symbol(). You can see a working example of the custom symbols in the scatterChart: code here
Mock Example:
[{
key: 'Key',
values: [
{ x: [x], y: [value] },
{ x: [x], y: [value] }
]
}]
# With Custom Symbols
[{
key: 'Random Name',
values: [
{ x: [x], y: [value], symbol: 'cross' },
{ x: [x], y: [value], symbol: 'cross' }
]
}]