コード例 #1
0
        public Highchart()
        {
            chart  = new Chart();
            colors = new[]
            {
                Color.FromArgb(0x7c, 0xb5, 0xec), Color.FromArgb(0x43, 0x43, 0x48),
                Color.FromArgb(0x90, 0xed, 0x7d), Color.FromArgb(0xf7, 0xa3, 0x5c),
                Color.FromArgb(0x80, 0x85, 0xe9), Color.FromArgb(0xf1, 0x5c, 0x80),
                Color.FromArgb(0xe4, 0xd3, 0x54), Color.FromArgb(0x2b, 0x90, 0x8f),
                Color.FromArgb(0xf4, 0x5b, 0x5b), Color.FromArgb(0x91, 0xe8, 0xe1),
            };
            legend      = new Legend();
            plotOptions = new PlotOptions();
            series      = new SeriesCollection(this);
            subtitle    = new HightchartSubtitle();
            title       = new HighchartTitle();
            xAxis       = new XAxis();
            yAxis       = new AxisCollection(this);
            yAxis.Add(new YAxis());

            plot         = new Control();
            plot.Padding = new Padding(1);
            plot.Visible = false;
            Controls.Add(plot);

            cachedPlotLeft = chart.spacingLeft + 38;

            Recalc();
        }
コード例 #2
0
        public Highchart()
        {
            chart  = new Chart();
            colors = new[]
            {
                Color.FromArgb(0x7c, 0xb5, 0xec), Color.FromArgb(0x43, 0x43, 0x48),
                Color.FromArgb(0x90, 0xed, 0x7d), Color.FromArgb(0xf7, 0xa3, 0x5c),
                Color.FromArgb(0x80, 0x85, 0xe9), Color.FromArgb(0xf1, 0x5c, 0x80),
                Color.FromArgb(0xe4, 0xd3, 0x54), Color.FromArgb(0x2b, 0x90, 0x8f),
                Color.FromArgb(0xf4, 0x5b, 0x5b), Color.FromArgb(0x91, 0xe8, 0xe1),
            };
            legend   = new Legend();
            series   = new SeriesCollection(this);
            subtitle = new HightchartSubtitle();
            title    = new HighchartTitle();
            xAxis    = new XAxis();
            yAxis    = new List <Axis>();

            yAxis.Add(new YAxis());

            Recalc();
        }