Jump to content
Software FX Community

Issue in webforms wrapper management of ListProvider data


Recommended Posts


I've been fiddling with this issue for a while now
and I believe that there is a bug in the way the webforms wrapper manages data
passed as a ListProvider.  The attached code-behind code illustrates the issue. 

The first thing to note is that in setting up an
array of arrays (allarrays() in the code) the array with largest index (dummy()
in the code) is not plotted in the graph, though it appears as a series in the
legend.  Now, this only happens when I set the DataType properties in the
DataSourceSettings class.  That is to say that all lines are plotted correctly
so long as the "
chart.DataSourceSettings.DataType(x)" are
left untouched. 

The second issue to note is that the array set to
XValue in the code is not the array set as the XValue in the chart.  In the
example code the last array is set as the XValue (the dummy() array).  Notice
that it is in fact the 'series4()' array that is acting as the XValue.  If the
first array is set as the XValue the graph X-axis indecies always seem to start
at 1 or 0 (which ever is default) no matter what the first array contains.

I should also add that I have the latest version of
ChartFX7 installed and that I am using VS 2005.

If the issues remain poorly defined let me know.  I
can clarify my explanations.

Thank you




Imports softwarefx.ChartFX.Wrapper.Internet.Server

Partial Class _Default
  Inherits System.Web.UI.Page

Sub Button1_Click(ByVal sender
As Object, ByVal e As System.EventArgs) Handles

  Dim chart As New

  Dim series1()
As Integer = {11, 12, 13, 14, 15, 16,

  Dim series2() As Integer = {1, 0, 1,
0, 1, 0, 1}

  Dim series3() As Integer = {1, 2, 3,
4, 5, 6, 7}

  Dim series4() As Double = {0.1, 0.2,
0.3, 0.4, 0.5, 0.6, 0.7}

Dim dummy() As Integer = {5, 6, 7,
8, 9, 10, 11}

  Dim allarrays()
As Object = {series1,
series2, series3, series4, dummy}

= SoftwareFX.ChartFX.Wrapper.DataType.Value

  chart.DataSourceSettings.DataType(1) =

  chart.DataSourceSettings.DataType(2) =

  chart.DataSourceSettings.DataType(3) =

  chart.DataSourceSettings.DataType(4) =

  Dim list
As New

  chart.DataSourceSettings.DataSource =

  End Sub

End Class

Link to comment
Share on other sites

Thank you for your feedback. I was able to reproduce the problem and found the cause.

The problem will be resolved in the next Service Pack.

As a workaround, you can bypass the wrapper by going directly to the new API:


Chart1_new.DataSourceSettings.Fields.Add(New ChartFX.WebForms.FieldMap("Field1", ChartFX.WebForms.FieldUsage.Value))


New ChartFX.WebForms.FieldMap("Field2", ChartFX.WebForms.FieldUsage.Value))Chart1_new.DataSourceSettings.Fields.Add(New ChartFX.WebForms.FieldMap("Field3", ChartFX.WebForms.FieldUsage.Value))


New ChartFX.WebForms.FieldMap("Field4", ChartFX.WebForms.FieldUsage.Value))


New ChartFX.WebForms.FieldMap("Field5", ChartFX.WebForms.FieldUsage.XValue))
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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...