Ejemplo n.º 1
0
        public override void Initialize()
        {
            base.Initialize();

            // remove all panels
            nChartControl1.Panels.Clear();

            // create a Venn chart
            NChart chart = new NVennChart();

            // create a title
            NLabel title = new NLabel("Five Set Venn");

            title.TextStyle.FontStyle = new NFontStyle("Times New Roman", 18, FontStyle.Italic);
            title.TextStyle.FillStyle = new NColorFillStyle(GreyBlue);

            // create a Venn series
            NVennSeries venn = (NVennSeries)chart.Series.Add(SeriesType.Venn);

            FiveSetVenn(venn);
            FiveSetVennLabels(venn);
            FiveSetVennInteractivity(venn);

            // set a tooltip tool
            nChartControl1.Controller.Selection.Add(chart);
            nChartControl1.Controller.Tools.Add(new NTooltipTool());

            // apply layout
            ConfigureStandardLayout(chart, title, null);
        }
Ejemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            nChartControl1.BackgroundStyle.FrameStyle.Visible = false;

            // set a chart title
            NLabel title = nChartControl1.Labels.AddHeader("Four Set Venn");

            title.TextStyle.FontStyle        = new NFontStyle("Times New Roman", 14, FontStyle.Italic);
            title.TextStyle.ShadowStyle.Type = ShadowType.LinearBlur;

            // no legend
            nChartControl1.Legends.Clear();

            NVennChart chart = new NVennChart();

            nChartControl1.Charts.Clear();
            nChartControl1.Charts.Add(chart);

            NVennSeries venn = (NVennSeries)chart.Series.Add(SeriesType.Venn);

            FourSetVenn(venn);
            FourSetVennLabels(venn);

            // apply layout
            ApplyLayoutTemplate(0, nChartControl1, chart, title, null);
        }