yhooithin05

Fusion Time custom range selector (initial interval) not working

Recommended Posts

Hi,

I am beginner on using fusion time, i am using vb.net with MySQL database, i would like to enable only 35 days on the calendar, currently when the page load to render the chart, it will takes too long time to load 35 days data on the chart(configure by back end coding). I wanted to just show by default only 1 week of data to display on the chart, and the calendar would like to enable 35 days for user to pick their desired timeframe. 

But i am not able to set the interval correctly, can anyone help? Thanks.

        Dim fusionTable As FusionTable = New FusionTable(schema, data.ToString)
        Dim timeSeries As TimeSeries = New TimeSeries(fusionTable)
        timeSeries.AddAttribute("caption", "{ text:'Particle Counter' }")
        timeSeries.AddAttribute("subcaption", "{text:'Daily'}")
        timeSeries.AddAttribute("navigator", "{enabled:'0'}")
       
        timeSeries.AddAttribute("xAxis", "{initialinterval:{from: '2020-12-24', to:'2020-12-30'}}")----------> i am not able to make this work
        timeSeries.AddAttribute("yAxis", "[{plot: {value:  'Particle Counter Value',type:'line'},title:  'Pt 1 0.5', series:  'SensorName' }]")

        Dim chart As Chart = New Chart("timeseries", "first_chart", "1600", "700", "json", timeSeries)
        ltChart.Text = chart.Render()

Share this post


Link to post
Share on other sites

Thanks for getting in touch.

Yes by specifying the initial time interval you could show the data confirming the particular time slice initially 

The custom range selector control also would confirm the initial time interval set. For reference check, the following sample Specify initial time interval (fusioncharts.com)

Please check to the sample and implement it accordingly.

Thanks

Soumya

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now