Jump to content
Software FX Community

Statistical Box Plot !


nguyenquocbo

Recommended Posts

Dear all

I see a example in resoucre center as bellow :

chart1.Data.Series = 4
chart1.Data.Points = 30
' Create the Statistics extension
' If the extension is created at design-time you don't need to create it here
Dim statistics1 As Statistical.Statistics
statistics1 = New Statistical.Statistics
statistics1.Chart = chart1
chart1.LegendBox.Visible = false
' Set the gallery to Box Plot

chart1.GalleryAttributes = statistics1.Gallery.BoxPlot 

 

 Now, i try code as bellow :

            Dim dt As DataTable = Get data from a table in sql

            Dim chartFX As New ChartFX.WebForms.Chart

            chartFX.Data.Series = 10

            chartFX.DataSource = dt

            Dim statistics1 As Statistical.Statistics

            statistics1 = New Statistical.Statistics

            statistics1.Gallery.BoxPlot.Notched = False

            statistics1.Chart = chartFX

            chartFX.LegendBox.Visible = False

            chartFX.GalleryAttributes = statistics1.Gallery.BoxPlot 

 But i can't monitor data by Box Plot because unsuccessful !

Pls, help me, how to set datasource for Box Plot graph from database

Thanks ! 

Link to comment
Share on other sites

Dir sir

if i set : chartFX.DataSource = dt then chartFX return for me a message "No data available"

But my datatable have 4000 record !

and after that i try remove line : chartFX.DataSource = dt

and replace by new line : chart1.Data.Points = 30 ==>OK

So i can not set datasource for chartFX when set type is  Box Plot

Pls help me ! 

 

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.

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