HexagonJS
Plot Changelog
2.0.1
hx.pieChartSelection
Bugfix
Fixed scope issue which prevented pieChart from being called more than once
2.0.0
hx.theme.plot
Removed
Replaced by hx.theme().plot - This is a breaking change
hx.theme().plot
Added
1.17.0
Bugfix
#348
Resolves an issue where the label formatters were not correctly being read for series.
1.14.0
hx.PieChart
Bugfix
#428
Fixed a divide by zero issue which caused single segment pie charts not to be rendered
1.10.0
hx.AxisoptionsObject
options
x
doCollisionDetectionBoolean
Added
#353
Added an option to enable collision detection to prevent labels overlapping on graphs. By default, this value is true.
hx.AxisoptionsObject
options
y
doCollisionDetectionBoolean
Added
#353
Added an option to enable collision detection to prevent labels overlapping on graphs. By default, this value is true.
hx.Axis
x
doCollisionDetectionBoolean
Added
#353
Added an option to enable collision detection to prevent labels overlapping on graphs. By default, this value is true.
hx.Axis
x
doCollisionDetectionAxis
Added
#353
Added an option to enable collision detection to prevent labels overlapping on graphs. By default, this value is true.
hx.Axis
y
doCollisionDetectionBoolean
Added
#353
Added an option to enable collision detection to prevent labels overlapping on graphs. By default, this value is true.
hx.Axis
y
doCollisionDetectionAxis
Added
#353
Added an option to enable collision detection to prevent labels overlapping on graphs. By default, this value is true.
1.8.0
Bugfix
#290
Prevent text wrapping in basic labels (e.g. sparklines)
1.6.0
LineSeriesextendsEventEmitter
Bugfix
#89
Updated line series so that the labels show for the first/last points
hx.Sparkline
Bugfix
#89
Updated sparkline so that the labels show for the first/last points
hx.SparklineoptionsObject
options
Added
#261
Added an option for setting the minimum y value for a sparkline
hx.SparklineoptionsObject
options
Added
#261
Added an option for setting the maximum y value for a sparkline
1.5.1
hx.Sparkline
Bugfix
#279
Fixed the default redrawOnResize value
1.5.0
hx.GraphoptionsObject
options
redrawOnResizeBoolean
Added
#152
Added an option to disable automatic redraw when container is resized.
hx.Graph
redrawOnResizeBoolean
Added
#152
Added an option to disable automatic redraw when container is resized.
hx.Graph
redrawOnResizeGraph
Added
#152
Added an option to disable automatic redraw when container is resized.
hx.PieChart
Bugfix
Resolved an issue in pie charts where the legend was not being displayed with the correct colors and was not rendering correctly
hx.SparklineoptionsObject
options
redrawOnResizeBoolean
Added
#152
Added an option to disable automatic redraw when container is resized.
hx.Sparkline
redrawOnResizeBoolean
Added
#152
Added an option to disable automatic redraw when container is resized.
hx.Sparkline
redrawOnResizeSparkline
Added
#152
Added an option to disable automatic redraw when container is resized.
1.4.1
Bugfix
#139
Fix the styles for plot labels to prevent them causing a scrollbar
1.4.0
hx.GraphextendsEventEmitter
Updated
#211
Updated the no data text to be defined in userFacingText
1.1.0
hx.GraphoptionsObject
options
Added
Added an axes option to hx.Graph to allow graphs to be created with the fluid api.
hx.Graph
render
Added
Added an event to allow listening to when a graph is rendered.
hx.AxisoptionsObject
options
seriesArray[Object]
Added
Added a series option to hx.Axis to allow graphs to be created with the fluid api.
hx.graph
Added
Added a fluid api for graphs.
1.0.4
hx.Sparkline
Bugfix
#52
Fix a bug where data with the same Y value caused an error with linear gradients
1.0.0
Updated
Removed the deprecated content from all the Plot api's as well as the declarative graphing api (hx.plot), including replacing all of the _new_ prefixed methods/properties with their unprefixed alternatives.
Updated
The plot api uses a new sampling method in this version called the 'Largest Three Buckets' algorithm. This should produce graphs that more faithfully represent the original data when downsampling.
hx.Graph
addAxisAxis
Removed
Use graph.addAxis(options) instead.
hx.Graph
useZoomBoolean
Removed
Use graph.zoomEnabled() instead. zoomEnabled(value) to set, zoomEnabled() to get.
hx.Graph
zoomStartNumber
Removed
Use graph.zoomRangeStart() instead. zoomRangeStart(value) to set, zoomRangeStart() to get.
hx.Graph
zoomEndNumber
Removed
Use graph.zoomRangeEnd() instead. zoomRangeEnd(value) to set, zoomRangeEnd() to get.
hx.Graph
useLabelsBoolean
Removed
Use graph.labelsEnabled() instead. labelsEnabled(value) to set, labelsEnabled() to get.
hx.Graph
useLegendBoolean
Removed
Use graph.legendEnabled() instead. legendEnabled(value) to set, legendEnabled() to get.
hx.Graph
legendPositionString
Removed
Use graph.legendLocation() instead. legendLocation(value) to set, legendLocation() to get.
hx.Axis
Removed
Use hx.Axis(options) instead.
hx.Axis
xVisibleBoolean
Removed
Use Axis.x.visible() instead. Axis.x.visible() to get, Axis.x.visible(value) to set.
hx.Axis
xFormatterString
Removed
Use Axis.x.formatter() instead. Axis.x.formatter() to get, Axis.x.formatter(value) to set.
hx.Axis
xMinNumber
Removed
Use Axis.x.min() instead. Axis.x.min() to get, Axis.x.min(value) to set.
hx.Axis
xMaxNumber
Removed
Use Axis.x.max() instead. Axis.x.max() to get, Axis.x.max(value) to set.
hx.Axis
xDiscretePaddingNumber
Removed
Use Axis.x.discretePadding() instead. Axis.x.discretePadding() to get, Axis.x.discretePadding(value) to set.
hx.Axis
xDiscreteLabelsArray
Removed
Use Axis.x.discreteLabels() instead. Axis.x.discreteLabels() to get, Axis.x.discreteLabels(value) to set.
hx.Axis
xTickSpacingNumber
Removed
Use Axis.x.tickSpacing() instead. Axis.x.tickSpacing() to get, Axis.x.tickSpacing(value) to set.
hx.Axis
xTitleString
Removed
Use Axis.x.title() instead. Axis.x.title() to get, Axis.x.title(value) to set.
hx.Axis
xScalePaddingMinNumber
Removed
Use Axis.x.scalePaddingMin() instead. Axis.x.scalePaddingMin() to get, Axis.x.scalePaddingMin(value) to set.
hx.Axis
xScalePaddingMaxNumber
Removed
Use Axis.x.scalePaddingMax() instead. Axis.x.scalePaddingMax() to get, Axis.x.scalePaddingMax(value) to set.
hx.Axis
xGridLinesBoolean
Removed
Use Axis.x.gridLines() instead. Axis.x.gridLines() to get, Axis.x.gridLines(value) to set.
hx.Axis
xNthTickVisibleNumber
Removed
Use Axis.x.nthTickVisible() instead. Axis.x.nthTickVisible() to get, Axis.x.nthTickVisible(value) to set.
hx.Axis
yVisibleBoolean
Removed
Use Axis.y.visible() instead. Axis.y.visible() to get, Axis.y.visible(value) to set.
hx.Axis
yFormatterString
Removed
Use Axis.y.formatter() instead. Axis.y.formatter() to get, Axis.y.formatter(value) to set.
hx.Axis
yMinNumber
Removed
Use Axis.y.min() instead. Axis.y.min() to get, Axis.y.min(value) to set.
hx.Axis
yMaxNumber
Removed
Use Axis.y.max() instead. Axis.y.max() to get, Axis.y.max(value) to set.
hx.Axis
yDiscretePaddingNumber
Removed
Use Axis.y.discretePadding() instead. Axis.y.discretePadding() to get, Axis.y.discretePadding(value) to set.
hx.Axis
yDiscreteLabelsArray
Removed
Use Axis.y.discreteLabels() instead. Axis.y.discreteLabels() to get, Axis.y.discreteLabels(value) to set.
hx.Axis
yTickSpacingNumber
Removed
Use Axis.y.tickSpacing() instead. Axis.y.tickSpacing() to get, Axis.y.tickSpacing(value) to set.
hx.Axis
yTitleString
Removed
Use Axis.y.title() instead. Axis.y.title() to get, Axis.y.title(value) to set.
hx.Axis
yScalePaddingMinNumber
Removed
Use Axis.y.scalePaddingMin() instead. Axis.y.scalePaddingMin() to get, Axis.y.scalePaddingMin(value) to set.
hx.Axis
yScalePaddingMaxNumber
Removed
Use Axis.y.scalePaddingMax() instead. Axis.y.scalePaddingMax() to get, Axis.y.scalePaddingMax(value) to set.
hx.Axis
yGridLinesBoolean
Removed
Use Axis.y.gridLines() instead. Axis.y.gridLines() to get, Axis.y.gridLines(value) to set.
hx.Axis
yNthTickVisibleNumber
Removed
Use Axis.y.nthTickVisible() instead. Axis.y.nthTickVisible() to get, Axis.y.nthTickVisible(value) to set.
hx.Axis
addSeriesSeries
Removed
Use addSeries(type, {title: "name"}) instead.
hx.Axis
xAxisTickLabelPositionString
Removed
Use Axis.x.axisTickLabelPosition() instead. Axis.x.axisTickLabelPosition() to get, Axis.x.axisTickLabelPosition(value) to set.
hx.Axis
yAxisTickLabelPositionString
Removed
Use Axis.y.axisTickLabelPosition() instead. Axis.y.axisTickLabelPosition() to get, Axis.y.axisTickLabelPosition(value) to set.
hx.Axis
xShowTicksBoolean
Removed
Use Axis.x.showTicks() instead. Axis.x.showTicks() to get, Axis.x.showTicks(value) to set.
hx.Axis
yShowTicksString
Removed
Use Axis.y.showTicks() instead. Axis.y.showTicks() to get, Axis.y.showTicks(value) to set.
BarSeries
nameString
Removed
Use series.title(name) to set the series name, series.title() to get the name.
BarSeries
colorString
Removed
Use series.fillColor(color) to set the color, series.fillColor() to get the color.
BarSeries
groupString
Removed
Use series.group(group) to set the series group, series.group() to get the group.
BarSeries
setData
Removed
Use series.data(data) to set new data, series.data() to get the current data.
BarSeries
classString
Removed
Use series.class(class) to set the series class, series.class() to get the class.
BarSeries
createLabelValues
Removed
Use labelValuesExtractor() instead.
BarSeries
_new_classBarSeries
Removed
BarSeries
_new_classString
Removed
BarSeries
_new_groupBarSeries
Removed
BarSeries
_new_groupString
Removed
BarSeries
classBarSeries
Added
Note
Sets an additional class to give the series svg elements.
BarSeries
classString
Added
Gets the additional class applied to the series svg elements.
BarSeries
groupBarSeries
Added
Sets the group the series belongs to. Series with the same group will be visually grouped together.
BarSeries
groupString
Added
Gets the group the series belongs to.
LineSeries
nameString
Removed
Use series.title(name) to set the series name, series.title() to get the name.
LineSeries
strokeBoolean
Removed
Use series.strokeEnabled(enabled) to set the state, series.strokeEnabled() to get it.
LineSeries
colorString
Removed
Use series.strokeColor(color) to set the color, series.strokeColor() to get the color.
LineSeries
Removed
Use series.fillEnabled(enabled) to set the state, series.fillEnabled() to get it.
LineSeries
fillColorString
Removed
Use series.fillColor(color) to set the color, series.fillColor() to get the color.
LineSeries
featherNumber
Removed
Use sampleThreshold() to get the feather value, sampleThreshold(value) to set it.
LineSeries
markersBoolean
Removed
Use series.markersEnabled(enabled) to set the state, series.markersEnabled() to get it.
LineSeries
markerRadiusNumber
Removed
Use _new_markerRadius(radius) to set the radius, _new_markerRadius() to get the radius.
LineSeries
markerColorString
Removed
Use seriesmarkerFillColor(color) to set the color, seriesmarkerFillColor() to get the color.
LineSeries
groupString
Removed
Use series.group(name) to set the series group, series.group() to get the group.
LineSeries
setData
Removed
Use series.data(data) to set new data, series.data() to get the current data.
LineSeries
Removed
Use series.strokeColor(color) to set the color, series.strokeColor() to get the color.
LineSeries
classString
Removed
Use series.class(class) to set the series class, series.class() to get the class.
LineSeries
createLabelValuesArray[Object]
Removed
Use labelValuesExtractor() instead.
LineSeries
_new_groupLineSeries
Removed
LineSeries
_new_groupString
Removed
LineSeries
_new_fillColorLineSeries
Removed
LineSeries
_new_fillColorString
Removed
LineSeries
_new_classLineSeries
Removed
LineSeries
_new_classString
Removed
LineSeries
_new_markerRadiusLineSeries
Removed
LineSeries
_new_markerRadiusNumber
Removed
LineSeries
groupLineSeries
Added
Sets the group the series belongs to. Series with the same group will be stacked on top of each other.
LineSeries
groupString
Added
Gets the group the series belongs to.
LineSeries
fillColorLineSeries
Added
Sets the color to fill the series with
LineSeries
fillColorString
Added
Gets the color used to fill the series with
LineSeries
classLineSeries
Added
Sets an additional class to give the series svg element.
LineSeries
classString
Added
Gets the additional class applied to the series svg element.
LineSeries
markerRadiusLineSeries
Added
Sets the radius of the markers in pixels
LineSeries
markerRadiusNumber
Added
Gets the radius of the markers in pixels
BandSeries
nameString
Removed
Use series.title(name) to set the series name, series.title() to get the name.
BandSeries
colorString
Removed
Use series.fillColor(color) to set the color, series.fillColor() to get the color.
BandSeries
featherNumber
Removed
Use series.sampleThreshold() to get the feather value, series.sampleThreshold(value) to set it.
BandSeries
setData
Removed
Use series.data(data) to set new data, series.data() to get the current data.
BandSeries
colorString / Array
Removed
Use series.fillColor(color) to set the color, series.fillColor() to get the color.
BandSeries
classString
Removed
Use series.class(class) to set the class, series.class() to get the class.
BandSeries
createLabelValuesArray[Object]
Removed
Use labelValuesExtractor() instead.
BandSeries
_new_classBandSeries
Removed
BandSeries
_new_classString
Removed
BandSeries
classBandSeries
Added
Sets an additional class to give the series svg element.
BandSeries
classString
Added
Gets the additional class applied to the series svg element.
ScatterSeries
nameString
Removed
Use series.title(name) to set the series name, series.title() to get the name.
ScatterSeries
colorString
Removed
Use series.fillColor(color) to set the color, series.fillColor() to get the color.
ScatterSeries
sizeNumber
Removed
Use series.radius(size) to set the size, series.radius() to get the size.
ScatterSeries
setData
Removed
Use series.data(data) to set new data, series.data() to get the current data.
ScatterSeries
classString
Removed
Use series.class(class) to set the series class, series.class() to get the class.
ScatterSeries
createLabelValuesArray[Object]
Removed
Use labelValuesExtractor() instead.
ScatterSeries
_new_classScatterSeries
Removed
ScatterSeries
_new_classString
Removed
ScatterSeries
classScatterSeries
Added
Sets an additional class to give the series svg elements.
ScatterSeries
classString
Added
Gets the additional class applied to the series svg elements.
StraightLineSeries
colorString
Removed
Use series.strokeColor(color) to set the color, series.strokeColor() to get the color.
StraightLineSeries
setData
Removed
Use series.data(data) to set new data, series.data() to get the current data.
StraightLineSeries
classString
Removed
Use series.class(class) to set the series class, series.class() to get the class.
StraightLineSeries
createLabelValuesArray[Object]
Removed
Use labelValuesExtractor() instead.
StraightLineSeries
nameString
Removed
Use series.title(name) to set the series name, series.title() to get the name.
StraightLineSeries
_new_classStraightLineSeries
Removed
StraightLineSeries
_new_classString
Removed
StraightLineSeries
classStraightLineSeries
Added
Sets an additional class to give the series svg element.
StraightLineSeries
classString
Added
Gets the additional class applied to the series svg element.
hx.PieChart
segmentPaddingNumber
Removed
Use piechart.segmentPadding(value) to set, piechart.segmentPadding() to get.
hx.PieChart
innerPaddingNumber
Removed
Use piechart.innerPadding(value) to set, piechart.innerPadding() to get.
hx.PieChart
ringPaddingNumber
Removed
Use piechart.ringPadding(value) to set, piechart.ringPadding() to get.
hx.PieChart
totalAngleNumber
Removed
Use piechart.totalAngle(value) to set, piechart.totalAngle() to get.
hx.PieChart
startAngleNumber
Removed
Use piechart.startAngle(value) to set, piechart.startAngle() to get.
hx.PieChart
colorString
Removed
Use piechart.strokeColor(value) to set, piechart.strokeColor() to get.
hx.PieChart
formatterFormatter
Removed
Use piechart.labelFormatter(value) to set, piechart.labelFormatter() to get.
hx.PieChart
setData
Removed
Use piechart.data(data) to set, piechart.data() to get.
hx.PieChart
createLabelValuesArray[Object]
Removed
Use piechart.labelValuesExtractor(value) to set, piechart.labelValuesExtractor() to get.
hx.PieChart
useLabelsBoolean
Removed
Use piechart.labelsEnabled(value) to set, piechart.labelsEnabled() to get.
hx.PieChart
useSegmentTextBoolean
Removed
Use piechart.segmentTextEnabled(value) to set, piechart.segmentTextEnabled() to get.
hx.PieChart
segmentTextFormatterString
Removed
Use piechart.segmentTextFormatter(value) to set, piechart.segmentTextFormatter() to get.
hx.PieChart
useLegendBoolean
Removed
Use piechart.legendEnabled(value) to set, piechart.legendEnabled() to get.
hx.PieChart
legendPositionString
Removed
Use piechart.legendLocation(value) to set, piechart.legendLocation() to get.
hx.PieChart
_new_innerPaddingPieChart
Removed
hx.PieChart
_new_innerPaddingNumber
Removed
hx.PieChart
_new_segmentPaddingPieChart
Removed
hx.PieChart
_new_segmentPaddingNumber
Removed
hx.PieChart
_new_ringPaddingPieChart
Removed
hx.PieChart
_new_ringPaddingNumber
Removed
hx.PieChart
_new_totalAnglePieChart
Removed
hx.PieChart
_new_totalAngleNumber
Removed
hx.PieChart
_new_startAnglePieChart
Removed
hx.PieChart
_new_startAngleNumber
Removed
hx.PieChart
_new_segmentTextFormatterPieChart
Removed
hx.PieChart
_new_segmentTextFormatterFunction
Removed
hx.PieChart
innerPaddingPieChart
Added
Sets the inner padding of the pie chart
hx.PieChart
innerPaddingNumber
Added
Gets the current inner padding of the pie chart
hx.PieChart
segmentPaddingPieChart
Added
Sets the segment padding of the pie chart
hx.PieChart
segmentPaddingNumber
Added
Gets the current segment padding of the pie chart
hx.PieChart
ringPaddingPieChart
Added
Sets the ring padding of the pie chart
hx.PieChart
ringPaddingNumber
Added
Gets the current ring padding of the pie chart
hx.PieChart
totalAnglePieChart
Added
Sets the total angle of the pie chart
hx.PieChart
totalAngleNumber
Added
Gets the current total angle of the pie chart
hx.PieChart
startAnglePieChart
Added
Sets the start angle of the pie chart
hx.PieChart
startAngleNumber
Added
Gets the current start angle of the pie chart
hx.PieChart
segmentTextFormatterPieChart
Added
Sets the segment text formatter of the pie chart
hx.PieChart
segmentTextFormatterFunction
Added
Gets the current segment text formatter of the pie chart
hx.plot
Removed
The standard api provides a more declarative way of constructing graphs via the options object, so this api is no longer needed.
hx.SparklineoptionsObject
options
labelRenderer
Added
The label renderer for this series.
hx.SparklineoptionsObject
options
data
Added
An array of {x, y} objects.
hx.Sparkline
dataSparkline
Removed
The data should now be supplied as an array of {x, y} objects
hx.Sparkline
labelRendererFunction
Added
Gets the label renderer for this sparkline
hx.Sparkline
labelRendererSparkline
Added
Sets the label renderer for this sparkline
hx.Sparkline
dataSparkline
Added
Sets the data
hx.pieChartSelection
Added
Fluid api version of PieChart
hx.sparklineSelection
Added
Fluid api version of Sparkline
0.15.3
Bugfix
Fix hover labels not appearing in the right position on the page
hx.Graph
addAxisAxis
Deprecated
Use graph.addAxis(options) instead.
hx.Graph
useZoomBoolean
Deprecated
Use graph.zoomEnabled() instead. zoomEnabled(value) to set, zoomEnabled() to get.
hx.Graph
zoomStartNumber
Deprecated
Use graph.zoomRangeStart() instead. zoomRangeStart(value) to set, zoomRangeStart() to get.
hx.Graph
zoomEndNumber
Deprecated
Use graph.zoomRangeEnd() instead. zoomRangeEnd(value) to set, zoomRangeEnd() to get.
hx.Graph
useLabelsBoolean
Deprecated
Use graph.labelsEnabled() instead. labelsEnabled(value) to set, labelsEnabled() to get.
hx.Graph
useLegendBoolean
Deprecated
Use graph.legendEnabled() instead. legendEnabled(value) to set, legendEnabled() to get.
hx.Graph
legendPositionString
Deprecated
Use graph.legendLocation() instead. legendLocation(value) to set, legendLocation() to get.
hx.Axis
Deprecated
Use hx.Axis(options) instead.
hx.Axis
xVisibleBoolean
Deprecated
Use Axis.x.visible() instead. Axis.x.visible() to get, Axis.x.visible(value) to set.
hx.Axis
xFormatterString
Deprecated
Use Axis.x.formatter() instead. Axis.x.formatter() to get, Axis.x.formatter(value) to set.
hx.Axis
xMinNumber
Deprecated
Use Axis.x.min() instead. Axis.x.min() to get, Axis.x.min(value) to set.
hx.Axis
xMaxNumber
Deprecated
Use Axis.x.max() instead. Axis.x.max() to get, Axis.x.max(value) to set.
hx.Axis
xDiscretePaddingNumber
Deprecated
Use Axis.x.discretePadding() instead. Axis.x.discretePadding() to get, Axis.x.discretePadding(value) to set.
hx.Axis
xDiscreteLabelsArray
Deprecated
Use Axis.x.discreteLabels() instead. Axis.x.discreteLabels() to get, Axis.x.discreteLabels(value) to set.
hx.Axis
xTickSpacingNumber
Deprecated
Use Axis.x.tickSpacing() instead. Axis.x.tickSpacing() to get, Axis.x.tickSpacing(value) to set.
hx.Axis
xTitleString
Deprecated
Use Axis.x.title() instead. Axis.x.title() to get, Axis.x.title(value) to set.
hx.Axis
xScalePaddingMinNumber
Deprecated
Use Axis.x.scalePaddingMin() instead. Axis.x.scalePaddingMin() to get, Axis.x.scalePaddingMin(value) to set.
hx.Axis
xScalePaddingMaxNumber
Deprecated
Use Axis.x.scalePaddingMax() instead. Axis.x.scalePaddingMax() to get, Axis.x.scalePaddingMax(value) to set.
hx.Axis
xGridLinesBoolean
Deprecated
Use Axis.x.gridLines() instead. Axis.x.gridLines() to get, Axis.x.gridLines(value) to set.
hx.Axis
xNthTickVisibleNumber
Deprecated
Use Axis.x.nthTickVisible() instead. Axis.x.nthTickVisible() to get, Axis.x.nthTickVisible(value) to set.
hx.Axis
yVisibleBoolean
Deprecated
Use Axis.y.visible() instead. Axis.y.visible() to get, Axis.y.visible(value) to set.
hx.Axis
yFormatterString
Deprecated
Use Axis.y.formatter() instead. Axis.y.formatter() to get, Axis.y.formatter(value) to set.
hx.Axis
yMinNumber
Deprecated
Use Axis.y.min() instead. Axis.y.min() to get, Axis.y.min(value) to set.
hx.Axis
yMaxNumber
Deprecated
Use Axis.y.max() instead. Axis.y.max() to get, Axis.y.max(value) to set.
hx.Axis
yDiscretePaddingNumber
Deprecated
Use Axis.y.discretePadding() instead. Axis.y.discretePadding() to get, Axis.y.discretePadding(value) to set.
hx.Axis
yDiscreteLabelsArray
Deprecated
Use Axis.y.discreteLabels() instead. Axis.y.discreteLabels() to get, Axis.y.discreteLabels(value) to set.
hx.Axis
yTickSpacingNumber
Deprecated
Use Axis.y.tickSpacing() instead. Axis.y.tickSpacing() to get, Axis.y.tickSpacing(value) to set.
hx.Axis
yTitleString
Deprecated
Use Axis.y.title() instead. Axis.y.title() to get, Axis.y.title(value) to set.
hx.Axis
yScalePaddingMinNumber
Deprecated
Use Axis.y.scalePaddingMin() instead. Axis.y.scalePaddingMin() to get, Axis.y.scalePaddingMin(value) to set.
hx.Axis
yScalePaddingMaxNumber
Deprecated
Use Axis.y.scalePaddingMax() instead. Axis.y.scalePaddingMax() to get, Axis.y.scalePaddingMax(value) to set.
hx.Axis
yGridLinesBoolean
Deprecated
Use Axis.y.gridLines() instead. Axis.y.gridLines() to get, Axis.y.gridLines(value) to set.
hx.Axis
yNthTickVisibleNumber
Deprecated
Use Axis.y.nthTickVisible() instead. Axis.y.nthTickVisible() to get, Axis.y.nthTickVisible(value) to set.
hx.Axis
addSeriesSeries
Deprecated
Use addSeries(type, {title: "name"}) instead.
hx.Axis
xAxisTickLabelPositionString
Deprecated
Use Axis.x.axisTickLabelPosition() instead. Axis.x.axisTickLabelPosition() to get, Axis.x.axisTickLabelPosition(value) to set.
hx.Axis
yAxisTickLabelPositionString
Deprecated
Use Axis.y.axisTickLabelPosition() instead. Axis.y.axisTickLabelPosition() to get, Axis.y.axisTickLabelPosition(value) to set.
hx.Axis
xShowTicksBoolean
Deprecated
Use Axis.x.showTicks() instead. Axis.x.showTicks() to get, Axis.x.showTicks(value) to set.
hx.Axis
yShowTicksString
Deprecated
Use Axis.y.showTicks() instead. Axis.y.showTicks() to get, Axis.y.showTicks(value) to set.
BarSeries
nameString
Deprecated
Use series.title(name) to set the series name, series.title() to get the name.
BarSeries
colorString
Deprecated
Use series.fillColor(color) to set the color, series.fillColor() to get the color.
BarSeries
groupString
Deprecated
Use series._new_group('group-name') to set the group, series.new_group() to get the group. The _new_ prefix will be dropped in 1.0.0 - it is required to avoid naming clash with existing properties until then.
BarSeries
setData
Deprecated
Use series.data(data) to set new data, series.data() to get the current data.
BarSeries
classString
Deprecated
Use series._new_class(class) to set the title. This method will be renamed to series.class() in 1.0.0. The _new_ prefix is required to avoid naming clash with existing properties. To get the class use series._new_class() .
BarSeries
createLabelValues
Deprecated
Use labelValuesExtractor() instead.
LineSeries
nameString
Deprecated
Use series.title(name) to set the series name, series.title() to get the name.
LineSeries
strokeBoolean
Deprecated
Use series.strokeEnabled(enabled) to set the state, series.strokeEnabled() to get it.
LineSeries
colorString
Deprecated
Use series.strokeColor(color) to set the color, series.strokeColor() to get the color.
LineSeries
Deprecated
Use series.fillEnabled(enabled) to set the state, series.fillEnabled() to get it.
LineSeries
fillColorString
Deprecated
Use series._new_fillColor(color) to set the color, series._new_fillColor() to get the color.
LineSeries
featherNumber
Deprecated
Use sampleThreshold() to get the feather value, sampleThreshold(value) to set it.
LineSeries
markersBoolean
Deprecated
Use series.markersEnabled(enabled) to set the state, series.markersEnabled() to get it.
LineSeries
markerRadiusNumber
Deprecated
Use _new_markerRadius(radius) to set the radius, _new_markerRadius() to get the radius.
LineSeries
markerColorString
Deprecated
Use seriesmarkerFillColor(color) to set the color, seriesmarkerFillColor() to get the color.
LineSeries
groupString
Deprecated
Use series._new_group('group-name') to set the group, series.new_group() to get the group. The _new_ prefix will be dropped in 1.0.0 - it is required to avoid naming clash with existing properties until then.
LineSeries
setData
Deprecated
Use series.data(data) to set new data, series.data() to get the current data.
LineSeries
Deprecated
Use series.strokeColor(color) to set the color, series.strokeColor() to get the color.
LineSeries
classString
Deprecated
Use series._new_class(class) to set the title. This method will be renamed to series.class() in 1.0.0. The _new_ prefix is required to avoid naming clash with existing properties. To get the class use series._new_class() .
LineSeries
createLabelValuesArray[Object]
Deprecated
Use labelValuesExtractor() instead.
BandSeries
nameString
Deprecated
Use series.title(name) to set the series name, series.title() to get the name.
BandSeries
colorString
Deprecated
Use series.fillColor(color) to set the color, series.fillColor() to get the color.
BandSeries
featherNumber
Deprecated
Use sampleThreshold() to get the feather value, sampleThreshold(value) to set it.
BandSeries
setData
Deprecated
Use series.data(data) to set new data, series.data() to get the current data.
BandSeries
colorString / Array
Deprecated
Use series.fillColor(color) to set the color, series.fillColor() to get the color.
BandSeries
classString
Deprecated
Use series._new_class(class) to set the title. This method will be renamed to series.class() in 1.0.0. The _new_ prefix is required to avoid naming clash with existing properties. To get the class use series._new_class() .
BandSeries
createLabelValuesArray[Object]
Deprecated
Use labelValuesExtractor() instead.
ScatterSeries
nameString
Deprecated
Use series.title(name) to set the series name, series.title() to get the name.
ScatterSeries
colorString
Deprecated
Use series.fillColor(color) to set the color, series.fillColor() to get the color.
ScatterSeries
sizeNumber
Deprecated
Use series.radius(size) to set the size, series.radius() to get the size.
ScatterSeries
setData
Deprecated
Use series.data(data) to set new data, series.data() to get the current data.
ScatterSeries
classString
Deprecated
Use series._new_class(class) to set the title. This method will be renamed to series.class() in 1.0.0. The _new_ prefix is required to avoid naming clash with existing properties. To get the class use series._new_class() .
ScatterSeries
createLabelValuesArray[Object]
Deprecated
Use labelValuesExtractor() instead.
StraightLineSeries
colorString
Deprecated
Use series.strokeColor(color) to set the color, series.strokeColor() to get the color.
StraightLineSeries
setData
Deprecated
Use series.data(data) to set new data, series.data() to get the current data.
StraightLineSeries
classString
Deprecated
Use series._new_class(class) to set the title. This method will be renamed to series.class() in 1.0.0. The _new_ prefix is required to avoid naming clash with existing properties. To get the class use series._new_class() .
StraightLineSeries
createLabelValuesArray[Object]
Deprecated
Use labelValuesExtractor() instead.
StraightLineSeries
nameString
Deprecated
Use series.title(name) to set the series name, series.title() to get the name.
hx.PieChart
segmentPaddingNumber
Deprecated
Use piechart._new_segmentPadding(value) to set, piechart._new_segmentPadding() to get.
hx.PieChart
innerPaddingNumber
Deprecated
Use piechart._new_innerPadding(value) to set, piechart._new_innerPadding() to get.
hx.PieChart
ringPaddingNumber
Deprecated
Use piechart._new_ringPadding(value) to set, piechart._new_ringPadding() to get.
hx.PieChart
totalAngleNumber
Deprecated
Use piechart._new_totalAngle(value) to set, piechart._new_totalAngle() to get.
hx.PieChart
startAngleNumber
Deprecated
Use piechart._new_startAngle(value) to set, piechart._new_startAngle() to get.
hx.PieChart
colorString
Deprecated
Use piechart.strokeColor(value) to set, piechart.strokeColor() to get.
hx.PieChart
formatterFormatter
Deprecated
Use piechart.labelFormatter(value) to set, piechart.labelFormatter() to get.
hx.PieChart
setData
Deprecated
Use piechart.data(data) to set, piechart.data() to get.
hx.PieChart
createLabelValuesArray[Object]
Deprecated
Use piechart.labelValuesExtractor(value) to set, piechart.labelValuesExtractor() to get.
hx.PieChart
useLabelsBoolean
Deprecated
Use piechart.labelsEnabled(value) to set, piechart.labelsEnabled() to get.
hx.PieChart
useSegmentTextBoolean
Deprecated
Use piechart.segmentTextEnabled(value) to set, piechart.segmentTextEnabled() to get.
hx.PieChart
segmentTextFormatterString
Deprecated
Use piechart._new_segmentTextFormatter(value) to set, piechart._new_segmentTextFormatter() to get.
hx.PieChart
useLegendBoolean
Deprecated
Use piechart.legendEnabled(value) to set, piechart.legendEnabled() to get.
hx.PieChart
legendPositionString
Deprecated
Use piechart.legendLocation(value) to set, piechart.legendLocation() to get.
hx.plot
Deprecated
The standard api provides a more declarative way of constructing graphs via the options object, so this api is no longer needed.
0.15.2
Info
Updated
Previously they were rendered in svg, which made them inflexible and limited them to displaying within the plot area. The new version uses floating divs which makes them easer to define and allows them to be displayed outside the plot area.
This is something that is needed for the new Sparkline api, which is a simple wrapper around the Graph api for drawing tiny graphs. Series now have a labelRenderer method for setting custom labelRenderers. This matches the renderer pattern used throughout hexagon.
hx.Graph
Removed
A new constructor has been added with an optional options object in place of this. If not using the options object, the existing way of creating a graph with new hx.Graph(selector) will still work
hx.Graph
addAxisAxis
Deprecated
Use graph.addAxis(options) instead.
hx.Graph
useZoomBoolean
Deprecated
Use graph.zoomEnabled() instead. zoomEnabled(value) to set, zoomEnabled() to get.
hx.Graph
zoomStartNumber
Deprecated
Use graph.zoomRangeStart() instead. zoomRangeStart(value) to set, zoomRangeStart() to get.
hx.Graph
zoomEndNumber
Deprecated
Use graph.zoomRangeEnd() instead. zoomRangeEnd(value) to set, zoomRangeEnd() to get.
hx.Graph
useLabelsBoolean
Deprecated
Use graph.labelsEnabled() instead. labelsEnabled(value) to set, labelsEnabled() to get.
hx.Graph
useLegendBoolean
Deprecated
Use graph.legendEnabled() instead. legendEnabled(value) to set, legendEnabled() to get.
hx.Graph
legendPositionString
Deprecated
Use graph.legendLocation() instead. legendLocation(value) to set, legendLocation() to get.
hx.Graph
Added
hx.Graph
zoomRangeStartGraph
Added
Sets the start of the zoomed region - specified on the 0 to 1 scale where 0 is the left-most value on the x axis, and 1 means the right-most value of the x axis (setting it to 1 will always result in the graph showing nothing).
hx.Graph
zoomRangeStartNumber
Added
Gets the start of the zoomed region - specified on the 0 to 1 scale where 0 is the left-most value on the x axis, and 1 means the right-most value of the x axis (setting it to 1 will always result in the graph showing nothing).
hx.Graph
zoomRangeEndGraph
Added
Sets the end of the zoomed region - specified on the 0 to 1 scale where 0 is the left-most value on the x axis, and 1 means the right-most value of the x axis (setting it to 1 will always result in the graph showing nothing).
hx.Graph
zoomRangeEndNumber
Added
Gets the end of the zoomed region - specified on the 0 to 1 scale where 0 is the left-most value on the x axis, and 1 means the right-most value of the x axis (setting it to 1 will always result in the graph showing nothing).
hx.Graph
zoomEnabledGraph
Added
Enables or disables the zoom with mouse feature. Supplying true enables zoom, false disables it.
hx.Graph
zoomEnabledBoolean
Added
Gets the value of the zoomEnabled option.
hx.Graph
labelsEnabledGraph
Added
hx.Graph
labelsEnabledBoolean
Added
Gets the value of the labelsEnabled option.
hx.Graph
legendEnabledGraph
Added
hx.Graph
legendEnabledBoolean
Added
Gets the value of the legendEnabled option.
hx.Graph
legendLocationGraph
Added
How to display the legend on the graph. Possible modes:
  • 'auto' - moves the legend around to avoid the mouse
  • 'hover' - same as auto, but only displays the legend on mouse hover
  • 'top-right' - displays the legend in the top right
  • 'top-left' - displays the legend in the top left
  • 'bottom-right' - displays the legend in the bottom right
  • 'bottom-left' - displays the legend in the bottom left
hx.Graph
legendLocationString
Added
Gets the value of the legendLocation option. It should be one of the following:
  • 'auto' - moves the legend around to avoid the mouse
  • 'hover' - same as auto, but only displays the legend on mouse hover
  • 'top-right' - displays the legend in the top right
  • 'top-left' - displays the legend in the top left
  • 'bottom-right' - displays the legend in the bottom right
  • 'bottom-left' - displays the legend in the bottom left
hx.Graph
axesArray[Axis]
Added
Gets the axes attached to the graph.
hx.Graph
axesGraph
Added
Sets the axes attached to the graph.
hx.Graph
addAxisAxis
Added
Creates a new axis with the options specified and adds it to the graph. Returns the new Axis instance.
hx.Axis
Bugfix
Fixed an issue with how the axes were being positioned for xAxisTickLabelPosition/yAxisTickLabelPosition
hx.Axis
Deprecated
Use hx.Axis(options) instead.
hx.Axis
xVisibleBoolean
Deprecated
Use Axis.x.visible() instead. Axis.x.visible() to get, Axis.x.visible(value) to set.
hx.Axis
xFormatterString
Deprecated
Use Axis.x.formatter() instead. Axis.x.formatter() to get, Axis.x.formatter(value) to set.
hx.Axis
xMinNumber
Deprecated
Use Axis.x.min() instead. Axis.x.min() to get, Axis.x.min(value) to set.
hx.Axis
xMaxNumber
Deprecated
Use Axis.x.max() instead. Axis.x.max() to get, Axis.x.max(value) to set.
hx.Axis
xDiscretePaddingNumber
Deprecated
Use Axis.x.discretePadding() instead. Axis.x.discretePadding() to get, Axis.x.discretePadding(value) to set.
hx.Axis
xDiscreteLabelsArray
Deprecated
Use Axis.x.discreteLabels() instead. Axis.x.discreteLabels() to get, Axis.x.discreteLabels(value) to set.
hx.Axis
xTickSpacingNumber
Deprecated
Use Axis.x.tickSpacing() instead. Axis.x.tickSpacing() to get, Axis.x.tickSpacing(value) to set.
hx.Axis
xTitleString
Deprecated
Use Axis.x.title() instead. Axis.x.title() to get, Axis.x.title(value) to set.
hx.Axis
xScalePaddingMinNumber
Deprecated
Use Axis.x.scalePaddingMin() instead. Axis.x.scalePaddingMin() to get, Axis.x.scalePaddingMin(value) to set.
hx.Axis
xScalePaddingMaxNumber
Deprecated
Use Axis.x.scalePaddingMax() instead. Axis.x.scalePaddingMax() to get, Axis.x.scalePaddingMax(value) to set.
hx.Axis
xGridLinesBoolean
Deprecated
Use Axis.x.gridLines() instead. Axis.x.gridLines() to get, Axis.x.gridLines(value) to set.
hx.Axis
xNthTickVisibleNumber
Deprecated
Use Axis.x.nthTickVisible() instead. Axis.x.nthTickVisible() to get, Axis.x.nthTickVisible(value) to set.
hx.Axis
yVisibleBoolean
Deprecated
Use Axis.y.visible() instead. Axis.y.visible() to get, Axis.y.visible(value) to set.
hx.Axis
yFormatterString
Deprecated
Use Axis.y.formatter() instead. Axis.y.formatter() to get, Axis.y.formatter(value) to set.
hx.Axis
yMinNumber
Deprecated
Use Axis.y.min() instead. Axis.y.min() to get, Axis.y.min(value) to set.
hx.Axis
yMaxNumber
Deprecated
Use Axis.y.max() instead. Axis.y.max() to get, Axis.y.max(value) to set.
hx.Axis
yDiscretePaddingNumber
Deprecated
Use Axis.y.discretePadding() instead. Axis.y.discretePadding() to get, Axis.y.discretePadding(value) to set.
hx.Axis
yDiscreteLabelsArray
Deprecated
Use Axis.y.discreteLabels() instead. Axis.y.discreteLabels() to get, Axis.y.discreteLabels(value) to set.
hx.Axis
yTickSpacingNumber
Deprecated
Use Axis.y.tickSpacing() instead. Axis.y.tickSpacing() to get, Axis.y.tickSpacing(value) to set.
hx.Axis
yTitleString
Deprecated
Use Axis.y.title() instead. Axis.y.title() to get, Axis.y.title(value) to set.
hx.Axis
yScalePaddingMinNumber
Deprecated
Use Axis.y.scalePaddingMin() instead. Axis.y.scalePaddingMin() to get, Axis.y.scalePaddingMin(value) to set.
hx.Axis
yScalePaddingMaxNumber
Deprecated
Use Axis.y.scalePaddingMax() instead. Axis.y.scalePaddingMax() to get, Axis.y.scalePaddingMax(value) to set.
hx.Axis
yGridLinesBoolean
Deprecated
Use Axis.y.gridLines() instead. Axis.y.gridLines() to get, Axis.y.gridLines(value) to set.
hx.Axis
yNthTickVisibleNumber
Deprecated
Use Axis.y.nthTickVisible() instead. Axis.y.nthTickVisible() to get, Axis.y.nthTickVisible(value) to set.
hx.Axis
addSeriesSeries
Deprecated
Use addSeries(type, {title: "name"}) instead.
hx.Axis
xAxisTickLabelPositionString
Deprecated
Use Axis.x.axisTickLabelPosition() instead. Axis.x.axisTickLabelPosition() to get, Axis.x.axisTickLabelPosition(value) to set.
hx.Axis
yAxisTickLabelPositionString
Deprecated
Use Axis.y.axisTickLabelPosition() instead. Axis.y.axisTickLabelPosition() to get, Axis.y.axisTickLabelPosition(value) to set.
hx.Axis
xShowTicksBoolean
Deprecated
Use Axis.x.showTicks() instead. Axis.x.showTicks() to get, Axis.x.showTicks(value) to set.
hx.Axis
yShowTicksString
Deprecated
Use Axis.y.showTicks() instead. Axis.y.showTicks() to get, Axis.y.showTicks(value) to set.
hx.Axis
Added
Creates a new Axis instance. This should normally be done via graph.addAxis(options) instead.
hx.Axis
addSeriesSeries
Added
Adds a new series to the graph. See the related series type prototype options for what to pass in for the options parameter.
hx.Axis
seriesArray[Series]
Added
Gets the list of the series attached to this axis
hx.Axis
seriesAxis
Added
Sets the list of the series attached to this axis
hx.Axis
x
Added
hx.Axis
y
Added
BarSeries
nameString
Deprecated
Use series.title(name) to set the series name, series.title() to get the name.
BarSeries
colorString
Deprecated
Use series.fillColor(color) to set the color, series.fillColor() to get the color.
BarSeries
groupString
Deprecated
Use series._new_group('group-name') to set the group, series.new_group() to get the group. The _new_ prefix will be dropped in 1.0.0 - it is required to avoid naming clash with existing properties until then.
BarSeries
setData
Deprecated
Use series.data(data) to set new data, series.data() to get the current data.
BarSeries
classString
Deprecated
Use series._new_class(class) to set the title. This method will be renamed to series.class() in 1.0.0. The _new_ prefix is required to avoid naming clash with existing properties. To get the class use series._new_class() .
BarSeries
Added
BarSeries
createLabelValues
Added
Deprecated
Use labelValuesExtractor() instead.
BarSeries
labelFormatterBandSeries
Added
Sets a label formatter
BarSeries
labelFormatterFunction
Added
Gets a label formatter
BarSeries
labelValuesExtractorBandSeries
Added
Sets the label values extractor.
BarSeries
labelValuesExtractorFunction
Added
Gets the label values extractor.
BarSeries
labelsEnabledBarSeries
Added
Sets whether labels should be used for this series
BarSeries
labelsEnabledBoolean
Added
Gets whether labels should be displayed for this series
BarSeries
labelRendererBarSeries
Added
Sets the label renderer for this series. This allows creation of custom labels
BarSeries
labelRendererFunction
Added
Gets the label renderer for this series.
BarSeries
titleBarSeries
Added
Sets the title of the series
BarSeries
titleString
Added
Gets the title of the series
BarSeries
_new_classBarSeries
Added
Note
The _new_ prefix will be dropped in version 1.0.0.
Sets an additional class to give the series svg elements.
BarSeries
_new_classString
Added
Note
The _new_ prefix will be dropped in version 1.0.0.
Gets the additional class applied to the series svg elements.
BarSeries
_new_groupBarSeries
Added
Note
The _new_ prefix will be dropped in version 1.0.0.
Sets the group the series belongs to. Series with the same group will be visually grouped together.
BarSeries
_new_groupString
Added
Note
The _new_ prefix will be dropped in version 1.0.0.
Gets the group the series belongs to.
BarSeries
fillColorBarSeries
Added
Sets the color to fill the bar with
BarSeries
fillColorString
Added
Gets the color used to fill the bar
BarSeries
dataBarSeries
Added
Sets the data for this series
BarSeries
Added
Gets the data for this series
LineSeries
nameString
Deprecated
Use series.title(name) to set the series name, series.title() to get the name.
LineSeries
strokeBoolean
Deprecated
Use series.strokeEnabled(enabled) to set the state, series.strokeEnabled() to get it.
LineSeries
colorString
Deprecated
Use series.strokeColor(color) to set the color, series.strokeColor() to get the color.
LineSeries
Deprecated
Use series.fillEnabled(enabled) to set the state, series.fillEnabled() to get it.
LineSeries
fillColorString
Deprecated
Use series._new_fillColor(color) to set the color, series._new_fillColor() to get the color.
LineSeries
featherNumber
Deprecated
Use sampleThreshold() to get the feather value, sampleThreshold(value) to set it.
LineSeries
markersBoolean
Deprecated
Use series.markersEnabled(enabled) to set the state, series.markersEnabled() to get it.
LineSeries
markerRadiusNumber
Deprecated
Use _new_markerRadius(radius) to set the radius, _new_markerRadius() to get the radius.
LineSeries
markerColorString
Deprecated
Use seriesmarkerFillColor(color) to set the color, seriesmarkerFillColor() to get the color.
LineSeries
groupString
Deprecated
Use series._new_group('group-name') to set the group, series.new_group() to get the group. The _new_ prefix will be dropped in 1.0.0 - it is required to avoid naming clash with existing properties until then.
LineSeries
setData
Deprecated
Use series.data(data) to set new data, series.data() to get the current data.
LineSeries
Deprecated
Use series.strokeColor(color) to set the color, series.strokeColor() to get the color.
LineSeries
classString
Deprecated
Use series._new_class(class) to set the title. This method will be renamed to series.class() in 1.0.0. The _new_ prefix is required to avoid naming clash with existing properties. To get the class use series._new_class() .
LineSeries
createLabelValuesArray[Object]
Deprecated
Use labelValuesExtractor() instead.
LineSeries
Added
LineSeries
labelFormatterLineSeries
Added
Sets a label formatter
LineSeries
labelFormatterFunction
Added
Gets a label formatter
LineSeries
titleLineSeries
Added
Sets the title of the series
LineSeries
titleString
Added
Gets the title of the series
LineSeries
_new_groupLineSeries
Added
Note
The _new_ prefix will be dropped in version 1.0.0.
Sets the group the series belongs to. Series with the same group will be stacked on top of each other.
LineSeries
_new_groupString
Added
Note
The _new_ prefix will be dropped in version 1.0.0.
Gets the group the series belongs to.
LineSeries
labelsEnabledLineSeries
Added
Sets whether labels should be used for this series
LineSeries
labelsEnabledBoolean
Added
Gets whether labels should be displayed for this series
LineSeries
labelRendererLineSeries
Added
Sets the label renderer for this series. This allows creation of custom labels
LineSeries
labelRendererFunction
Added
Gets the label renderer for this series.
LineSeries
sampleThresholdLineSeries
Added
Sets the maximum number of data points to render when displaying the graph. If there are more data points in the series data than this value, the data will be sampled.
LineSeries
sampleThresholdNumber
Added
Gets the maximum number of points that will be shown before sampling is applied.
LineSeries
labelValuesExtractorLineSeries
Added
Sets the label values extractor.
LineSeries
labelValuesExtractorFunction
Added
Gets the label values extractor.
LineSeries
strokeEnabledLineSeries
Added
Sets whether the path for this series should be stroked
LineSeries
strokeEnabledBoolean
Added
Gets whether the path of this series should be stroked
LineSeries
strokeColorLineSeries
Added
Sets the color to stroke the series with
LineSeries
strokeColorString
Added
Gets the color used to stroke the series with
LineSeries
fillEnabledLineSeries
Added
Sets whether the path for this series should be filled
LineSeries
fillEnabledBoolean
Added
Gets whether the path of this series should be filled
LineSeries
_new_fillColorLineSeries
Added
Note
The _new_ prefix will be dropped in 1.0.0.
Sets the color to fill the series with
LineSeries
_new_fillColorString
Added
Note
The _new_ prefix will be dropped in 1.0.0.
Gets the color used to fill the series with
LineSeries
_new_classLineSeries
Added
Note
The _new_ prefix will be dropped in version 1.0.0.
Sets an additional class to give the series svg element.
LineSeries
_new_classString
Added
Note
The _new_ prefix will be dropped in version 1.0.0.
Gets the additional class applied to the series svg element.
LineSeries
markersEnabledLineSeries
Added
Sets whether markers should be placed where there are data points
LineSeries
markersEnabledBoolean
Added
Gets whether markers should be placed where there are data points
LineSeries
markerFillColorLineSeries
Added
Sets the color to fill the markers with
LineSeries
markerFillColorString
Added
Gets the color used to fill the markers with
LineSeries
_new_markerRadiusLineSeries
Added
Sets the radius of the markers in pixels
LineSeries
_new_markerRadiusNumber
Added
Gets the radius of the markers in pixels
LineSeries
dataLineSeries
Added
Sets the data for this series
LineSeries
Added
Sets the data for this series
BandSeries
nameString
Deprecated
Use series.title(name) to set the series name, series.title() to get the name.
BandSeries
colorString
Deprecated
Use series.fillColor(color) to set the color, series.fillColor() to get the color.
BandSeries
featherNumber
Deprecated
Use sampleThreshold() to get the feather value, sampleThreshold(value) to set it.
BandSeries
setData
Deprecated
Use series.data(data) to set new data, series.data() to get the current data.
BandSeries
colorString / Array
Deprecated
Use series.fillColor(color) to set the color, series.fillColor() to get the color.
BandSeries
classString
Deprecated
Use series._new_class(class) to set the title. This method will be renamed to series.class() in 1.0.0. The _new_ prefix is required to avoid naming clash with existing properties. To get the class use series._new_class() .
BandSeries
createLabelValuesArray[Object]
Deprecated
Use labelValuesExtractor() instead.
BandSeries
createLabelValuesdataPointObject
dataPoint
Added
BandSeries
Added
BandSeries
titleBandSeries
Added
Sets the title of the series
BandSeries
titleString
Added
Gets the title of the series
BandSeries
fillColorBandSeries
Added
Sets the color to fill the band with
BandSeries
fillColorBandSeries
Added
Sets the color to fill the band with
BandSeries
fillColorString
Added
Gets the color used to fill the band
BandSeries
_new_classBandSeries
Added
Note
The _new_ prefix will be dropped in version 1.0.0.
Sets an additional class to give the series svg element.
BandSeries
_new_classString
Added
Note
The _new_ prefix will be dropped in version 1.0.0.
Gets the additional class applied to the series svg element.
BandSeries
sampleThresholdBandSeries
Added
Sets the maximum number of data points to render when displaying the graph. If there are more data points in the series data than this value, the data will be sampled.
BandSeries
sampleThresholdNumber
Added
Gets the maximum number of points that will be shown before sampling is applied.
BandSeries
labelValuesExtractorBandSeries
Added
Sets the label values extractor.
BandSeries
labelFormatterBandSeries
Added
Sets a label formatter
BandSeries
labelFormatterFunction
Added
Gets a label formatter
BandSeries
labelValuesExtractorFunction
Added
Gets the label values extractor.
BandSeries
labelsEnabledBandSeries
Added
Sets whether labels should be used for this series
BandSeries
labelsEnabledBoolean
Added
Gets whether labels should be displayed for this series
BandSeries
labelRendererBandSeries
Added
Sets the label renderer for this series. This allows creation of custom labels
BandSeries
labelRendererFunction
Added
Gets the label renderer for this series.
BandSeries
labelInterpolatedBandSeries
Added
Sets whether or not label's values should be interpolated.
BandSeries
labelInterpolatedBoolean
Added
Gets whether or not label's values should be interpolated.
BandSeries
dataBandSeries
Added
Sets the data for this series
BandSeries
Added
Gets the data for this series
ScatterSeries
nameString
Deprecated
Use series.title(name) to set the series name, series.title() to get the name.
ScatterSeries
colorString
Deprecated
Use series.fillColor(color) to set the color, series.fillColor() to get the color.
ScatterSeries
sizeNumber
Deprecated
Use series.radius(size) to set the size, series.radius() to get the size.
ScatterSeries
setData
Deprecated
Use series.data(data) to set new data, series.data() to get the current data.
ScatterSeries
classString
Deprecated
Use series._new_class(class) to set the title. This method will be renamed to series.class() in 1.0.0. The _new_ prefix is required to avoid naming clash with existing properties. To get the class use series._new_class() .
ScatterSeries
createLabelValuesArray[Object]
Deprecated
Use labelValuesExtractor() instead.
ScatterSeries
Added
ScatterSeries
labelValuesExtractorScatterSeries
Added
Sets the label values extractor.
ScatterSeries
labelValuesExtractorFunction
Added
Gets the label values extractor.
ScatterSeries
labelFormatterScatterSeries
Added
Sets a label formatter
ScatterSeries
labelFormatterFunction
Added
Gets a label formatter
ScatterSeries
labelsEnabledScatterSeries
Added
Sets whether labels should be used for this series
ScatterSeries
labelsEnabledBoolean
Added
Gets whether labels should be displayed for this series
ScatterSeries
labelRendererScatterSeries
Added
Sets the label renderer for this series. This allows creation of custom labels
ScatterSeries
labelRendererFunction
Added
Gets the label renderer for this series.
ScatterSeries
titleScatterSeries
Added
Sets the title of the series
ScatterSeries
titleString
Added
Gets the title of the series
ScatterSeries
_new_classScatterSeries
Added
Note
The _new_ prefix will be dropped in version 1.0.0.
Sets an additional class to give the series svg elements.
ScatterSeries
_new_classString
Added
Note
The _new_ prefix will be dropped in version 1.0.0.
Gets the additional class applied to the series svg elements.
ScatterSeries
radiusScatterSeries
Added
Sets the radius of the scatter points for this series. The radius may also be overidden in the data.
ScatterSeries
radiusNumber
Added
Gets the radius of the scatter points.
ScatterSeries
fillColorScatterSeries
Added
Sets the color to fill the point with
ScatterSeries
fillColorString
Added
Gets the color used to fill the point
ScatterSeries
dataScatterSeries
Added
Sets the data for this series
ScatterSeries
Added
Gets the data for this series
StraightLineSeries
colorString
Deprecated
Use series.strokeColor(color) to set the color, series.strokeColor() to get the color.
StraightLineSeries
setData
Deprecated
Use series.data(data) to set new data, series.data() to get the current data.
StraightLineSeries
classString
Deprecated
Use series._new_class(class) to set the title. This method will be renamed to series.class() in 1.0.0. The _new_ prefix is required to avoid naming clash with existing properties. To get the class use series._new_class() .
StraightLineSeries
createLabelValuesArray[Object]
Deprecated
Use labelValuesExtractor() instead.
StraightLineSeries
Added
StraightLineSeries
labelValuesExtractorStraightLineSeries
Added
Sets the label values extractor.
StraightLineSeries
labelValuesExtractorFunction
Added
Gets the label values extractor.
StraightLineSeries
labelFormatterStraightLineSeries
Added
Sets a label formatter
StraightLineSeries
labelFormatterFunction
Added
Gets a label formatter
StraightLineSeries
labelsEnabledStraightLineSeries
Added
Sets whether labels should be used for this series
StraightLineSeries
labelsEnabledBoolean
Added
Gets whether labels should be displayed for this series
StraightLineSeries
labelRendererStraightLineSeries
Added
Sets the label renderer for this series. This allows creation of custom labels
StraightLineSeries
labelRendererFunction
Added
Gets the label renderer for this series.
StraightLineSeries
nameString
Added
Deprecated
Use series.title(name) to set the series name, series.title() to get the name.
StraightLineSeries
titleStraightLineSeries
Added
Sets the title of the series
StraightLineSeries
titleString
Added
Gets the title of the series
StraightLineSeries
_new_classStraightLineSeries
Added
Note
The _new_ prefix will be dropped in version 1.0.0.
Sets an additional class to give the series svg element.
StraightLineSeries
_new_classString
Added
Note
The _new_ prefix will be dropped in version 1.0.0.
Gets the additional class applied to the series svg element.
StraightLineSeries
strokeColorStraightLineSeries
Added
Sets the color to stroke the series with
StraightLineSeries
strokeColorString
Added
Gets the color used to stroke the series with
StraightLineSeries
dataStraightLineSeries
Added
Sets the data for this series
StraightLineSeries
Added
Gets the data for this series
hx.PieChart
Removed
A new constructor has been added with an optional options object in place of this. If not using the options object, the existing way of creating a graph with new hx.PieChart(selector) will still work
hx.PieChart
segmentPaddingNumber
Deprecated
Use piechart._new_segmentPadding(value) to set, piechart._new_segmentPadding() to get.
hx.PieChart
innerPaddingNumber
Deprecated
Use piechart._new_innerPadding(value) to set, piechart._new_innerPadding() to get.
hx.PieChart
ringPaddingNumber
Deprecated
Use piechart._new_ringPadding(value) to set, piechart._new_ringPadding() to get.
hx.PieChart
totalAngleNumber
Deprecated
Use piechart._new_totalAngle(value) to set, piechart._new_totalAngle() to get.
hx.PieChart
startAngleNumber
Deprecated
Use piechart._new_startAngle(value) to set, piechart._new_startAngle() to get.
hx.PieChart
colorString
Deprecated
Use piechart.strokeColor(value) to set, piechart.strokeColor() to get.
hx.PieChart
formatterFormatter
Deprecated
Use piechart.labelFormatter(value) to set, piechart.labelFormatter() to get.
hx.PieChart
setData
Deprecated
Use piechart.data(data) to set, piechart.data() to get.
hx.PieChart
createLabelValuesArray[Object]
Deprecated
Use piechart.labelValuesExtractor(value) to set, piechart.labelValuesExtractor() to get.
hx.PieChart
useLabelsBoolean
Deprecated
Use piechart.labelsEnabled(value) to set, piechart.labelsEnabled() to get.
hx.PieChart
useSegmentTextBoolean
Deprecated
Use piechart.segmentTextEnabled(value) to set, piechart.segmentTextEnabled() to get.
hx.PieChart
segmentTextFormatterString
Deprecated
Use piechart._new_segmentTextFormatter(value) to set, piechart._new_segmentTextFormatter() to get.
hx.PieChart
useLegendBoolean
Deprecated
Use piechart.legendEnabled(value) to set, piechart.legendEnabled() to get.
hx.PieChart
legendPositionString
Deprecated
Use piechart.legendLocation(value) to set, piechart.legendLocation() to get.
hx.PieChart
Added
Creates a new pie chart object.
hx.PieChart
segmentTextEnabledPieChart
Added
Sets the segmentTextEnabled value of the pie chart
hx.PieChart
segmentTextEnabledBoolean
Added
Gets the current segmentTextEnabled of the pie chart
hx.PieChart
labelsEnabledPieChart
Added
Sets the labelsEnabled value of the pie chart
hx.PieChart
labelsEnabledBoolean
Added
Gets the current labelsEnabled of the pie chart
hx.PieChart
legendEnabledPieChart
Added
Sets the legendEnabled value of the pie chart
hx.PieChart
legendEnabledBoolean
Added
Gets the current legendEnabled of the pie chart
hx.PieChart
fillColorPieChart
Added
Sets the default segment fill color value of the pie chart
hx.PieChart
fillColorString
Added
Gets the current default segment fill color of the pie chart
hx.PieChart
_new_innerPaddingPieChart
Added
Sets the inner padding of the pie chart
hx.PieChart
_new_innerPaddingNumber
Added
Gets the current inner padding of the pie chart
hx.PieChart
_new_segmentPaddingPieChart
Added
Sets the segment padding of the pie chart
hx.PieChart
_new_segmentPaddingNumber
Added
Gets the current segment padding of the pie chart
hx.PieChart
_new_ringPaddingPieChart
Added
Sets the ring padding of the pie chart
hx.PieChart
_new_ringPaddingNumber
Added
Gets the current ring padding of the pie chart
hx.PieChart
_new_totalAnglePieChart
Added
Sets the total angle of the pie chart
hx.PieChart
_new_totalAngleNumber
Added
Gets the current total angle of the pie chart
hx.PieChart
_new_startAnglePieChart
Added
Sets the start angle of the pie chart
hx.PieChart
_new_startAngleNumber
Added
Gets the current start angle of the pie chart
hx.PieChart
_new_segmentTextFormatterPieChart
Added
Sets the segment text formatter of the pie chart
hx.PieChart
_new_segmentTextFormatterFunction
Added
Gets the current segment text formatter of the pie chart
hx.PieChart
labelValuesExtractorPieChart
Added
Sets the label values extractor of the pie chart
hx.PieChart
labelValuesExtractorFunction
Added
Gets the current label values extractor of the pie chart
hx.PieChart
labelRendererPieChart
Added
Sets the label renderer of the pie chart
hx.PieChart
labelRendererFunction
Added
Gets the current label renderer of the pie chart
hx.PieChart
labelFormatterPieChart
Added
Sets the label formatter of the pie chart
hx.PieChart
labelFormatterFunction
Added
Gets the current label formatter of the pie chart
hx.PieChart
Added
Gets the current data of the pie chart
hx.PieChart
data
Added
Sets the data this pie chart should display.
hx.plot
Deprecated
The standard api provides a more declarative way of constructing graphs via the options object, so this api is no longer needed.
hx.Sparkline
Added
A function for creating a small, inline graph with with no visible axes or ticks.
0.12.10
hx.Axis
xShowTicksBoolean
Added
An option to show/hide x tick markers
hx.Axis
yShowTicksString
Added
An option to show/hide y tick markers
0.12.8
hx.Axis
xAxisTickLabelPositionString
Added
An option for choosing where the x axis tick labels should be positioned
hx.Axis
yAxisTickLabelPositionString
Added
An option for choosing where the y axis tick labels should be positioned
0.12.2
hx.GraphextendsEventEmitter
Bugfix
Automatic scale calculation, stacking and grouping were broken in the 0.12.1 release. These have been fixed.
0.12.0
hx.Graph
zoom
Added
Added a zoom event when the zoom is changed by the user
0.11.0
hx.GraphextendsEventEmitter
Updated
Added resize listener to make graphs re-render when the container is resized.
Added
Added the ability to set a global zoom for all axes at once with the zoomStart and zoomEnd properties. Zooming with the mouse wheel can be enabled by setting the useZoom property to true.
hx.Graph
useZoomBoolean
Added
Whether or not to enable zoom controls for the graph
hx.Graph
zoomStartNumber
Added
The start or the zoomed region - specified on the 0 to 1 scale.
hx.Graph
zoomEndNumber
Added
The end or the zoomed region - specified on the 0 to 1 scale.
hx.Graph
useLabelsBoolean
Added
Whether or not to display labels on hover
hx.Graph
useLegendBoolean
Added
Whether or not to display the legend
hx.Graph
legendPositionString
Added
How to display the legend on the graph. Possible modes:
  • 'auto' - moves the legend around to avoid the mouse
  • 'hover' - same as auto, but only displays the legend on mouse hover
  • 'top-right' - displays the legend in the top right
  • 'top-left' - displays the legend in the top left
  • 'bottom-right' - displays the legend in the bottom right
  • 'bottom-left' - displays the legend in the bottom left
BarSeries
classString
Added
An optional additional class (or list of space separated classes) to give the series. This can be used to change the styles for a series.
LineSeriesextendsEventEmitter
Updated
Gradient stroke and fill is now possible (by using an array for the color properties)
LineSeries
featherNumber
Updated
series.feather can now be set to false to disable feathering
LineSeries
Added
A css string color to stroke the path line with. To color the line with a gradient, this may be set to an array:
series.series.color = [
  {
    yValue: 0,
    color: hx.theme.plot.negativeCol
  },
  {
    yValue: 90,
    color: '#555'
  },
  {
    yValue: 110,
    color: '#555'
  },
  {
    yValue: 200,
    color: hx.theme.plot.negativeCol
  }
]
The colors will be linearly interpolated vertically between the y values.
LineSeries
classString
Added
An optional additional class (or list of space separated classes) to give the series. This can be used to change the styles for a series, for example by making a line series dashed.
LineSeries
createLabelValuesArray[Object]
Added
Creates the list of values to show in the hover-over labels. The default is that the x and y values will be returned.
BandSeriesextendsEventEmitter
Bugfix
Fixed issue where existing band series weren't being cleared when a graph was re-renderered.
Updated
Gradient fill is now possible (by using an array for the color property)
BandSeries
featherNumber
Updated
series.feather can now be set to false to disable feathering
BandSeries
colorString / Array
Added
A css string color to stroke the path line with. To color the line with a gradient, this may be set to an array:
series.series.color = [
  {
    yValue: 0,
    color: hx.theme.plot.negativeCol
  },
  {
    yValue: 90,
    color: '#555'
  },
  {
    yValue: 110,
    color: '#555'
  },
  {
    yValue: 200,
    color: hx.theme.plot.negativeCol
  }
]
The colors will be linearly interpolated vertically between the y values.
BandSeries
classString
Added
An optional additional class (or list of space separated classes) to give the series. This can be used to change the styles for a series.
BandSeries
createLabelValuesArray[Object]
Added
Creates the list of values to show in the hover-over labels. The default is that the x and y values will be returned.
ScatterSeries
classString
Added
An optional additional class (or list of space separated classes) to give the series. This can be used to change the styles for the data points.
ScatterSeries
createLabelValuesArray[Object]
Added
Creates the list of values to show in the hover-over labels. The default is that the x and y values will be returned.
StraightLineSeries
classString
Added
An optional additional class (or list of space separated classes) to give the series. This can be used to change the styles for a series, for example by making a line series dashed.
StraightLineSeries
createLabelValuesArray[Object]
Added
Creates the list of values to show in the hover-over labels. The default is that the x and y values will be returned.
hx.PieChart
Updated
Added resize listener to make pie charts re-render when the container is resized.
Bugfix
Updated the pie chart labels to help prevent them flowing outside the bounding box of the svg.
hx.PieChart
createLabelValuesArray[Object]
Added
Creates the list of values to show in the hover-over labels. The default is that the x and y values will be returned.
hx.PieChart
useLabelsBoolean
Added
Whether or not to display labels on hover
hx.PieChart
useSegmentTextBoolean
Added
Whether or not to display text on each segment. If this is enabled, it is recommended that useLabels is disabled.
hx.PieChart
segmentTextFormatterString
Added
Returns the text that should be displayed on a segment if useSegmentText is enabled.
hx.PieChart
useLegendBoolean
Added
Whether or not to display the legend
hx.PieChart
legendPositionString
Added
How to display the legend on the graph. Possible modes:
  • 'auto' - moves the legend around to avoid the mouse
  • 'hover' - same as auto, but only displays the legend on mouse hover
  • 'top-right' - displays the legend in the top right
  • 'top-left' - displays the legend in the top left
  • 'bottom-right' - displays the legend in the bottom right
  • 'bottom-left' - displays the legend in the bottom left
hx.plot
Added
Provides a function for declaring graphs as an object, as alternative to the builder pattern use by the rest of the plot api.
0.10.0
hx-plot-text-warm
Added
Applies the warm color from the graph color palette to text.
hx-plot-text-ambient
Added
Applies the ambient color from the graph color palette to text.
hx-plot-text-cold
Added
Applies the cold color from the graph color palette to text.
hx-plot-text-positive
Added
Applies the positive color from the graph color palette to text.
hx-plot-text-warning
Added
Applies the warning color from the graph color palette to text.
hx-plot-text-negative
Added
Applies the negative color from the graph color palette to text.
hx-plot-background-warm
Added
Applies the warm color from the graph color palette as a background color.
hx-plot-background-ambient
Added
Applies the ambient color from the graph color palette as a background color.
hx-plot-background-cold
Added
Applies the cold color from the graph color palette as a background color.
hx-plot-background-positive
Added
Applies the positive color from the graph color palette as a background color.
hx-plot-background-warning
Added
Applies the warning color from the graph color palette as a background color.
hx-plot-background-negative
Added
Applies the negative color from the graph color palette as a background color.
0.9.0
hx.Axis
xGridLinesBoolean
Added
Whether or not to show grid lines for the x axis ticks. True means the grid lines will be shown.
hx.Axis
xNthTickVisibleNumber
Added
Sets which ticks should display text. If set to 1, then every tick will have text. If set to 2 every other tick will display text. If set to 3, every third tick will show text. And so on..
hx.Axis
yGridLinesBoolean
Added
Whether or not to show grid lines for the y axis ticks. True means the grid lines will be shown.
hx.Axis
yNthTickVisibleNumber
Added
Sets which ticks should display text. If set to 1, then every tick will have text. If set to 2 every other tick will display text. If set to 3, every third tick will show text. And so on..