Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi.

 

I have a chart for displaying some data.

 

The problem is that I have a combo list from where I chose the chart to be displayed for 1 day, 3 days, 7 days, 10 days, 20 days and 30 days.

 

It is possible to have a �for loop� for generate dynamically the chart with 1 column, 3 , 5 .whatever ..

 

This is my code now.

 

 Dim Sales2(,) As Object = New Object(,) _
            {{"cheese spread", "Param 1"}, _
            {zile(6), info_for(6, unit, 1)}, _
            {zile(5), info_for(5, unit, 1)}, _
            {zile(4), info_for(4, unit, 1)}, _
            {zile(3), info_for(3, unit, 1)}, _
            {zile(2), info_for(2, unit, 1)}, _
            {zile(1), info_for(1, unit, 1)}, _
            {zile(0), info_for(0, unit, 1)}}
       chart2.ChartData = Sales2

 

thanks

 

I don't want copy paste (and change) for each option :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...