-
Notifications
You must be signed in to change notification settings - Fork 524
Comparison
A comparison chart, showing a primary metric in the context of a secondary metric.
# comparison(selection)
Apply the comparison chart to a D3 selection.
# comparison.height([height])
Get or set the chart height in pixels.
# comparison.primary([metric])
Get or set the primary chart metric.
# comparison.secondary([metric])
Get or set the secondary chart metric.
# comparison.extent([extent])
Get or set the chart extent (if not automatic).
# comparison.title([title])
Get or set the chart title.
# comparison.formatPrimary([format])
Get or set the chart's primary value format function.
# comparison.formatChange([format])
Get or set the chart's change format function.
# comparison.colors([colors])
Get or set the comparison colors.
# comparison.stroke([stroke])
Get or set the primary metric stroke color.
# comparison.strokeWidth([width])
Get or set the primary metric stroke width, in pixels.
# comparison.fill([fill])
Get or set the primary metric fill color.