Putting labels on a path, bending circular labels, and more in amCharts 4.1.2
Just released amCharts 4.1.2 includes a few new awesome features in addition to fixes and improvements.
Labels on a path
Now you can put a label right on the series path and it will bend as the graph curvature bends.
You can take it to the next level and animate the label to move along the graph’s path:
Bent circular labels
You can now use a boolean
bent property on the
AxisLabelCircular to bend the label along the shape of a circular chart:
Other additions, changes and fixes
Here’s what else is new in amCharts 4.1.1 and 4.1.2:
added. Can be used in conjunction with
Labelhas two new properties:
.If set, will layout the SVG text along a curvature of the SVG path. HTML and multi-line text is not supported.
added. If set to
,the label will be bent to follow the curvature of the circle. Distance from the circle can be adjusted using
thealignLabels need to to be set to
forthis feature to work.
ValueAxis(will work on DateAxis too). With this set
, axiswill keep the relative selection when data changes (is updated). This is useful for “pre-zooming” a date axis: just set it’s
axis.start = 0.8).
strictMinMax = true
arenot set, axiswill fix the min and max and real high/low values.
- JSON: Having property values with both percent and minus signs in them, was resulting in
- “Z” code
wasnot taking UTC setting into account.
- Exporting SVG with Unicode characters in Edge/IE was resulting in invalid SVG.
disposingchart/changing data in some cases.
- Gantt chart sometimes was not displaying
first/last data item.
elementswere not respecting
nonScalingStroke = true
untilzoom level changed.
- Series’ tooltip was not always visible
cursorTooltipDisabled = truewas not working properly in some cases.
usedto appear on map lines.
- Some fixes made so that vertically and horizontally stacked axes
arenow possible. Check new example in
Get the latest amCharts
As always, you can get the latest version of amCharts by following one of the methods outlined on our Download page.