Ejemplo n.º 1
0
        /// <summary>
        /// Design settings for legend.
        /// </summary>
        public virtual void SetLegend(Chart chart)
        {
            if (ChartProperties.Legend)
            {
                // Add the chart Legend.
                Legend legend = chart.AppendChild <Legend>(
                    new Legend(
                        new LegendPosition()
                {
                    Val = new EnumValue <LegendPositionValues>(LegendPositionValues.Bottom)
                },
                        new Layout()));
                legend.Append(new Overlay()
                {
                    Val = false
                });

                chart.Append(new PlotVisibleOnly()
                {
                    Val = new BooleanValue(true)
                });
            }
        }