Passing Series data to chart
Hello,
I just started using fast-reports. I am trying to pass data to a chart via vb.net code. Below is the code. When i ren the poert, nothing is changing on the template.
I just started using fast-reports. I am trying to pass data to a chart via vb.net code. Below is the code. When i ren the poert, nothing is changing on the template.
Imports FastReport
Imports FastReport.MSChart
Public Class Resultsform
    Private Sub Reportbtn_Click(sender As System.Object, e As System.EventArgs) Handles Reportbtn.Click
        Dim Series1 As New MSChartSeries
        Dim Series2 As New MSChartSeries
        Dim Series3 As New MSChartSeries
        Series1.Name = "Aggressive"
        Series2.Name = "Moderate"
        Series3.Name = "Conservative"
        Series1.XValue = 1
        Series1.YValue1 = 10
        Series1.XValue = 2
        Series1.YValue1 = 15
        Series1.XValue = 3
        Series1.YValue1 = 5
     Â
        qdistchart.Series.Add(Series1)
        qdistchart.Series.Add(Series2)
        qdistchart.Series.Add(Series3)
        Report1.Show()
End Sub
End Class
Comments
Your code does not pass anything to the report template. Please clarify what you need to do -
- create the chart in code;
- or pass some static data to the fully configured chart in a report