Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Reporting > Telerik Reporting > Changing the color of a bar when negative

Not answered Changing the color of a bar when negative

Feed from this thread
  • hin avatar

    Posted on Apr 6, 2012 (permalink)

    I have created charts inside a report using SQLDataSource to bind the data.  I would like my bar graph to show negative entries in red and positive entries in green.

    I have tried setting the "ConditionalFormatting" property as in link below but that doesn't do anything. 
    http://www.telerik.com/help/reporting/styling-conditional-formatting.html

    Also I found this thread, but my data is generated by datasource.  How can I retrieve the ChartSeriesItem from the reportviewer?
    http://www.telerik.com/help/reporting/howtoassigncolors.html

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not IsPostBack Then
            Dim report As New MyReports.NetIncomeByOffice
            ReportViewer1.Report = report
        End If
    End Sub

    Reply

  • Hadib Ahmabi Intermediate avatar

    Posted on Apr 9, 2012 (permalink)

    I believe that creating the chart items programmatically is the only way of achieving your requirement. 

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Reporting > Telerik Reporting > Changing the color of a bar when negative
Related resources for "Changing the color of a bar when negative"

Features  |  Documentation  |  Demos  |  Telerik TV  |  Knowledge Base  |  Code Library  |  Step-by-step Tutorial  |  Blogs  |  Whitepaper  ]