charts-axisupdate.mustache revision d676c69348c891c2a261a6dbd4f450ddb2e312f3
0N/A<p>This example shows how to access `Chart` instance's value axis after the `Chart` has rendered.</p>
0N/A<p>Often times, you will need to update a chart after it has been rendered. This example demonstrates how to access and update an axis. Specifically, we'll update the rotation and color of
0N/A<p>A `Chart` instance's axes can be accessed through the `getAxisByKey` method. This method takes the axis' key identifier as an argument. If you have explicitly set your
0N/Aaxis through the `axes` attribute, you will know the key identifier. If not, the default key identifier for the value axis is "values" and the default key identifier for the category
0N/Aaxis is `category`. Once you have a reference for the axis, you can update all of its public attributes.</p>
0N/A axis = myChart.getAxisByKey(axisName);
0N/A label.color = color;