Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
280
Column Chart display after Page Load
posted

Hello,

 I am using a column chart to display information from a SQL database. The chart has to load after the user selects a value from a dropdown list, but the chart is loading as soon as the page loads and is giving me the error: "Data Not Available. Please call UltraChart.data.databind() after setting valid data source."  After a value from teh dropdownlist is selected the correct information is displayed on the chart. But how do I get the chart to not load before selecting something from the dropdownlist.

I have used

Me.ChartGenre.Data.DataSource = GetColumnData()

Me.ChartGenre.Data.DataBind()

in the SelectedIndexChanged procedure of the DropDown. and not in the Page_load sub

Thanks.