Beispiel #1
0
        public SCChart SetDefaultPane(PaneOptions options)
        {
            if (Chart.Diagram is not XYDiagram diagram)
            {
                throw new Exception("Cannot determine chart's pane to apply settings. Ensure that chart is 2D XY chart.");
            }

            options ??= new PaneOptions();

            var pane = diagram.DefaultPane;

            options.SetupXtraChartsPane(pane);

            return(this);
        }
Beispiel #2
0
        public SCChart AddPane(string name, PaneOptions options = null)
        {
            if (Chart.Diagram is not XYDiagram diagram)
            {
                throw new Exception("Cannot determine chart's pane to apply settings. Ensure that chart is 2D XY chart.");
            }

            options ??= new PaneOptions();

            var pane = new XYDiagramPane(name);

            diagram.Panes.Add(pane);

            options.SetupXtraChartsPane(pane);

            return(this);
        }