Esempio n. 1
0
        public string InjectParameterToProperties(string targetScript, ChartProperties chartProperties)
        {
            var result = targetScript;

            //IsHtmlText
            result = InjectParameter(result, PropertiesParameterKey.IsHtmlText, chartProperties.IsHtmlText.ToString().ToLower());

            //FontSize
            result = InjectParameter(result, PropertiesParameterKey.FontSize, chartProperties.FontSize.ToString());

            //Resolution
            result = InjectParameter(result, PropertiesParameterKey.Resolution, chartProperties.Resolution.ToString());

            //ShadowSize
            result = InjectParameter(result, PropertiesParameterKey.ShadowSize, chartProperties.ShadowSize.ToString());

            //Colors
            result = InjectParameter(result, PropertiesParameterKey.Colors, chartProperties.Colors.singleQuoteEnclosed().CommaSeparated());

            //Grid
            result = InjectParameter(result, PropertiesParameterKey.GridIsVisibleHorizontalLines, chartProperties.Grid.IsVisibleHorizontalLines.ToString().ToLower());
            result = InjectParameter(result, PropertiesParameterKey.GridIsVisibleVerticalLines, chartProperties.Grid.IsVisibleVerticalLines.ToString().ToLower());
            result = InjectParameter(result, PropertiesParameterKey.GridBackGroundImageAddress, chartProperties.Grid.BackGroundImageAddress.ToString().Enclosed(ExtendConst.SingleQuoteEnclosedFormat));
            result = InjectParameter(result, PropertiesParameterKey.GridOutlineWidth, chartProperties.Grid.GridOutlineWidth.ToString());

            //XAxis
            result = InjectParameter(result, PropertiesParameterKey.XAxisIsVisibleLabels, chartProperties.XAxis.IsVisibleLabels.ToString().ToLower());
            result = InjectParameter(result, PropertiesParameterKey.XAxisMinValue, chartProperties.XAxis.MinValue.ToString());
            result = InjectParameter(result, PropertiesParameterKey.XAxisMaxValue, chartProperties.XAxis.MaxValue.ToString());

            //YAxis
            result = InjectParameter(result, PropertiesParameterKey.YAxisIsVisibleLabels, chartProperties.YAxis.IsVisibleLabels.ToString().ToLower());
            result = InjectParameter(result, PropertiesParameterKey.YAxisMinValue, chartProperties.YAxis.MinValue.ToString());
            result = InjectParameter(result, PropertiesParameterKey.YAxisMaxValue, chartProperties.YAxis.MaxValue.ToString());

            //Pie
            result = InjectParameter(result, PropertiesParameterKey.PieIsVisible, chartProperties.Pie.IsVisible.ToString().ToLower());
            result = InjectParameter(result, PropertiesParameterKey.PieExplode, chartProperties.Pie.Explode.ToString());
            result = InjectParameter(result, PropertiesParameterKey.PieSizeRatio, chartProperties.Pie.SizeRatio.ToString());
            result = InjectParameter(result, PropertiesParameterKey.PieFillOpacity, chartProperties.Pie.FillOpacity.ToString());

            //Mouse
            result = InjectParameter(result, PropertiesParameterKey.MouseIsTrackable, chartProperties.Mouse.IsTrackable.ToString().ToLower());

            //Legend
            result = InjectParameter(result, PropertiesParameterKey.LegendPosition, chartProperties.Legend.position.ToString());
            result = InjectParameter(result, PropertiesParameterKey.LegendBackgroundColor, chartProperties.Legend.BackgroundColor);
            result = InjectParameter(result, PropertiesParameterKey.LegendBorderColor, chartProperties.Legend.BorderColor);

            //Bubble
            result = InjectParameter(result, PropertiesParameterKey.BubblesIsVisible, chartProperties.Bubble.IsVisible.ToString().ToLower());
            result = InjectParameter(result, PropertiesParameterKey.BubblesBaseRadius, chartProperties.Bubble.BaseRadius.ToString());

            //Marker
            result = InjectParameter(result, PropertiesParameterKey.MarkersIsVisible, chartProperties.Marker.IsVisible.ToString().ToLower());
            result = InjectParameter(result, PropertiesParameterKey.MarkersIsRelative, chartProperties.Marker.IsRelative.ToString().ToLower());
            result = InjectParameter(result, PropertiesParameterKey.MarkersFontSize, chartProperties.Marker.FontSize.ToString());

            return result;
        }
Esempio n. 2
0
        /// <summary>
        /// フォーメーション共通のプロパティーを返す
        /// </summary>
        public ChartProperties GetFormationSharedProperties()
        {
            ChartProperties result = new ChartProperties();

            // XAxis
            result.XAxis.MinValue = JlgChartConst.FormationXAxisMinValue;
            result.XAxis.MaxValue = JlgChartConst.FormationXAxisMaxValue;
            result.XAxis.IsVisibleLabels = false;

            result.YAxis = new YAxis();
            // YAxis
            result.YAxis.MinValue = JlgChartConst.FormationYAxisMinValue;
            result.YAxis.MaxValue = JlgChartConst.FormationYAxisMaxValue;
            result.YAxis.IsVisibleLabels = false;

            result.Grid = new Grid();
            // Grid
            result.Grid.IsVisibleHorizontalLines = false;
            result.Grid.IsVisibleVerticalLines = false;
            result.Grid.BackGroundImageAddress = JlgChartConst.FormationGridBackGroundImageAddress;

            // Colors
            result.Colors = new List<string>() { JlgChartConst.HomeFormationColor, JlgChartConst.DefaultColor, JlgChartConst.DefaultColor, JlgChartConst.AwayFormationColor, JlgChartConst.DefaultColor, JlgChartConst.DefaultColor };

            return result;
        }
Esempio n. 3
0
        /// <summary>
        /// フォーメーション配置、攻撃力のデータ表示用バブルのプロパティーを返す
        /// </summary>
        public ChartProperties GetFormationPositionProperties()
        {
            ChartProperties result = new ChartProperties();

            // Bubble
            result.Bubble.IsVisible = true;
            result.Bubble.BaseRadius = JlgChartConst.FormationBaseRadius;

            // Mouse
            result.Mouse.IsTrackable = true;

            return result;
        }
Esempio n. 4
0
        /// <summary>
        /// フォーメーション選手名マーカー用のプロパティーを返す
        /// </summary>
        public ChartProperties GetFormationMarkerProperties()
        {
            ChartProperties result = new ChartProperties();

            // Marker
            result.Marker.IsVisible = true;
            result.Marker.IsRelative = false;
            result.Marker.FontSize = JlgChartConst.FormationFontSize;

            return result;
        }