Welcome Guest Search | Active Topics |

Highlight weekends
nikimartin.fietz@mvv.de
#1 Posted : Wednesday, April 01, 2015 5:58:27 AM(UTC)
Rank: Newbie

Groups: Registered, WebFormsChart
Joined: 3/22/2015(UTC)
Posts: 1

Thanks: 1 times
Was thanked: 0 time(s) in 0 post(s)
Hello,

do you have a little piece of code how to highlight weekends in the Chart when using "DateTime" Axis-Interval?

I guess it could be done by vertical plot bands?

Regards Niki
Ivan
#2 Posted : Wednesday, April 08, 2015 6:17:55 AM(UTC)
Rank: Administration

Groups: Administrators, Moderator, Registered
Joined: 11/5/2012(UTC)
Posts: 131

Thanks: 0 times
Was thanked: 15 time(s) in 15 post(s)
You can try this code:

Code:
<jqChart:Chart ID="Chart1" Width="500px" Height="300px" runat="server">
        <Title Text="Chart Title"></Title>
        <Animation Enabled="True" Duration="00:00:01" />
        <Axes>
            <jqChart:DateTimeAxis Location="Bottom"
                Minimum="2015/3/30"
                Maximum="2015/4/20">
                <PlotBands>
                    <jqChart:PlotBand DateTimeFrom="2015/4/04"
                        DateTimeTo="2015/4/06">
                    </jqChart:PlotBand>
                    <jqChart:PlotBand DateTimeFrom="2015/4/11"
                        DateTimeTo="2015/4/13">
                    </jqChart:PlotBand>
                    <jqChart:PlotBand DateTimeFrom="2015/4/18"
                        DateTimeTo="2015/4/20">
                    </jqChart:PlotBand>
                </PlotBands>
            </jqChart:DateTimeAxis>
        </Axes>
        <Series>
            <jqChart:LineSeries Title="Line">
                <XValues>
                    <jqChart:DateTimeValue Value="2015/4/2" />
                    <jqChart:DateTimeValue Value="2015/4/9" />
                </XValues>
                <YValues>
                    <jqChart:DoubleValue Value="10" />
                    <jqChart:DoubleValue Value="20" />
                </YValues>
            </jqChart:LineSeries>
        </Series>
    </jqChart:Chart>
Best,
Ivan Petrov
jqChart Inc.
1 user thanked Ivan for this useful post.
nikimartin.fietz@mvv.de on 4/17/2015(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

FlatEarth Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.4 | YAF © 2003-2010, Yet Another Forum.NET
This page was generated in 0.178 seconds.