Search Tutorials
Adding the chart titlesThe user will enter the chart titles, select how many rows and data to enter and then enter the data. When they click the Update chart button, the information will be displayed on the bar chart.In the property inspector, I entered a click handler function for the button called UpdateChartDataFn. This function will update the titles and display the data on the chart. But to start with, we'll just use the function to update the chart titles. The function below takes the information in the strTitle, strXTitle and strYTitle variables and sets the titles on the instance of the Bar Chart component called ThisBarChart.
function UpdateChartDataFn() {
Enter the code shown above onto the functions layer and test your movie. If everything has worked properly, you should be able to type in your titles and click the Update chart button to display them on the bar chart.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|