Ejemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Chart{T}" /> class.
        /// </summary>
        /// <param name="viewContext">The view context.</param>
        /// <param name="clientSideObjectWriterFactory">The client side object writer factory.</param>
        /// <param name="urlGenerator">The URL Generator.</param>
        public Chart(ViewContext viewContext, IClientSideObjectWriterFactory clientSideObjectWriterFactory, IUrlGenerator urlGenerator)
            : base(viewContext, clientSideObjectWriterFactory)
        {
            ScriptFileNames.AddRange(new[] { "telerik.common.js", "telerik.chart.js" });

            ClientEvents   = new ChartClientEvents();
            UrlGenerator   = urlGenerator;
            Title          = new ChartTitle();
            ChartArea      = new ChartArea();
            PlotArea       = new PlotArea();
            Legend         = new ChartLegend();
            Series         = new List <ChartSeriesBase <T> >();
            CategoryAxis   = new ChartCategoryAxis <T>(this);
            ValueAxis      = new ChartNumericAxis <T>(this);
            XAxis          = new ChartNumericAxis <T>(this);
            YAxis          = new ChartNumericAxis <T>(this);
            DataBinding    = new ChartDataBindingSettings(this);
            SeriesDefaults = new ChartSeriesDefaults <T>(this);
            AxisDefaults   = new ChartAxisDefaults <T>(this);
            Tooltip        = new ChartTooltip();
            Transitions    = true;
        }
Ejemplo n.º 2
0
 public ChartTitleSerializer(ChartTitle title)
 {
     this.title = title;
 }
 public ChartTitleSerializer(ChartTitle title)
 {
     this.title = title;
 }
 public ChartTitleBuilderTests()
 {
     title = new ChartTitle();
     builder = new ChartTitleBuilder(title);
 }