Exemple #1
0
        private void codebehindAnnotatedTimeline()
        {
            GoogleChartsNGraphsControls.GVAnnotatedTimeline chart = new GoogleChartsNGraphsControls.GVAnnotatedTimeline();
            chart.Width  = WD;
            chart.Height = HT;

            GoogleChartsNGraphsControls.TimelineEvent[] evts = new GoogleChartsNGraphsControls.TimelineEvent[]
            {
                new GoogleChartsNGraphsControls.TimelineEvent("foo", new DateTime(2014, 1, 1), 80, "Start", "Starting the charting of Foo"),
                new GoogleChartsNGraphsControls.TimelineEvent("foo", new DateTime(2014, 1, 2), 70),
                new GoogleChartsNGraphsControls.TimelineEvent("foo", new DateTime(2014, 1, 3), 90),
                new GoogleChartsNGraphsControls.TimelineEvent("foo", new DateTime(2014, 1, 4), 100, "End", "Ending this look at foo"),
                new GoogleChartsNGraphsControls.TimelineEvent("bar", new DateTime(2014, 1, 1), 66, "Start", "Doing the same for bar"),
                new GoogleChartsNGraphsControls.TimelineEvent("bar", new DateTime(2014, 1, 2), 55),
                new GoogleChartsNGraphsControls.TimelineEvent("bar", new DateTime(2014, 1, 3), 44, "End", "Bar is all completed!"),
            };

            chart.ChartData(evts);
            chart.DataBind();

            this.PlaceHolderChart.Controls.Add(chart);
        }
        private void codebehindAnnotatedTimeline()
        {
            GoogleChartsNGraphsControls.GVAnnotatedTimeline chart = new GoogleChartsNGraphsControls.GVAnnotatedTimeline();
            chart.Width = WD;
            chart.Height = HT;

            GoogleChartsNGraphsControls.TimelineEvent[] evts = new GoogleChartsNGraphsControls.TimelineEvent[]
            {
                new GoogleChartsNGraphsControls.TimelineEvent("foo",new DateTime(2014,1,1),80, "Start", "Starting the charting of Foo"),
                new GoogleChartsNGraphsControls.TimelineEvent("foo",new DateTime(2014,1,2),70),
                new GoogleChartsNGraphsControls.TimelineEvent("foo",new DateTime(2014,1,3),90),
                new GoogleChartsNGraphsControls.TimelineEvent("foo",new DateTime(2014,1,4),100, "End", "Ending this look at foo"),
                new GoogleChartsNGraphsControls.TimelineEvent("bar",new DateTime(2014,1,1),66, "Start", "Doing the same for bar"),
                new GoogleChartsNGraphsControls.TimelineEvent("bar",new DateTime(2014,1,2),55),
                new GoogleChartsNGraphsControls.TimelineEvent("bar",new DateTime(2014,1,3),44, "End", "Bar is all completed!"),
            };

            chart.ChartData(evts);
            chart.DataBind();

            this.PlaceHolderChart.Controls.Add(chart);
        }