This is a migrated thread and some comments may be shown as answers.

Different color on horizontal zero axis

2 Answers 41 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Håkan
Top achievements
Rank 1
Håkan asked on 02 Feb 2015, 11:10 AM
Hi!

I have a chart that displays both positive and negative values in line and bar series.
The horizontal lines that are displayed on the vertical axis accross the chart are very soft as default, and I would like too keep it that way, but is there any way I can style just the zero value line to make it stand out more?

See attached image.

Regards,
Håkan

2 Answers, 1 is accepted

Sort by
0
Håkan
Top achievements
Rank 1
answered on 02 Feb 2015, 12:25 PM
I found one solution myself, but if there is a better one, please let me know.
I added an annotation like this:

<telerik:RadCartesianChart.Annotations>
                <telerik:CartesianGridLineAnnotation Axis="{Binding ElementName=VerticalAxis}" Value="0" StrokeThickness="1" Stroke="Black" />
            </telerik:RadCartesianChart.Annotations>

Regards,
Håkan
0
Martin Ivanov
Telerik team
answered on 03 Feb 2015, 01:58 PM
Hi Håkan,

The applied solution is the right way to achieve your requirement. If you have any further questions, please let us know.

Regards,
Martin
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
ChartView
Asked by
Håkan
Top achievements
Rank 1
Answers by
Håkan
Top achievements
Rank 1
Martin Ivanov
Telerik team
Share this question
or