Esempio n. 1
0
		public override TKChartPointLabel LabelForDataPoint (TKChartData dataPoint, TKChartSeries series, nuint dataIndex)
		{
			TKChartDataPoint point = (TKChartDataPoint)dataPoint;
			if (series.Index == (nuint)this.SelectedSeries && dataIndex == (nuint)this.SelectedDataPoint) {
				if (this.labelLayer == null) {
					this.labelLayer = new SelectedPointLabel ();
				}

				this.labelLayer.LabelStyle = series.Style.PointLabelStyle;
				this.labelLayer.Text = String.Format ("{0}", point.DataYValue);
				this.isSelectedPoint = true;
				return null;
			}

			this.isSelectedPoint = false;
			return new TKChartPointLabel (dataPoint, series, String.Format ("{0}", point.DataYValue));
		}
Esempio n. 2
0
        public override TKChartPointLabel LabelForDataPoint(TKChartData dataPoint, TKChartSeries series, nuint dataIndex)
        {
            TKChartDataPoint point = (TKChartDataPoint)dataPoint;

            if (series.Index == (nuint)this.SelectedSeries && dataIndex == (nuint)this.SelectedDataPoint)
            {
                if (this.labelLayer == null)
                {
                    this.labelLayer = new SelectedPointLabel();
                }

                this.labelLayer.LabelStyle = series.Style.PointLabelStyle;
                this.labelLayer.Text       = String.Format("{0}", point.DataYValue);
                this.isSelectedPoint       = true;
                return(null);
            }

            this.isSelectedPoint = false;
            return(new TKChartPointLabel(dataPoint, series, String.Format("{0}", point.DataYValue)));
        }