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

  • edited 4:35AM
    Hello,

    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

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.