Ejemplo n.º 1
0
        public ChartJsoptions GetOptions()
        {
            ChartJsoptions        chartoptions = new ChartJsoptions();
            ChartJSoptionsScalesY yAxes        = new ChartJSoptionsScalesY();

            yAxes.ticks.beginAtZero = true;
            chartoptions.scales.yAxes.Add(yAxes);
            chartoptions.title.display = true;
            return(chartoptions);
        }
Ejemplo n.º 2
0
        public ChartJsoptions GetOptions()
        {
            ChartJsoptions chartoptions = new ChartJsoptions();

            ChartJsoptions0 zoptions = new ChartJsoptions0();

            ChartJSoptionsScales      scales = new ChartJSoptionsScales();
            ChartJSoptionsScalesTicks sticks = new ChartJSoptionsScalesTicks();
            ChartJSoptionsScaleTicks  ticks  = new ChartJSoptionsScaleTicks();

            ticks.beginAtZero = true;
            sticks.ticks      = ticks;
            scales.yAxes.Add(sticks);
            zoptions.scales            = scales;
            chartoptions               = zoptions;
            chartoptions.title.display = true;
            return(chartoptions);
        }
Ejemplo n.º 3
0
        public ChartJsoptions GetOptions()
        {
            ChartJsoptions chartoptions = new ChartJsoptions();


            if (_options.Mode == "Synergy" || _options.Mode == "AntiSynergy")
            {
                ChartJsoptionsradar radaroptions = new ChartJsoptionsradar();
                radaroptions.title.text      = _options.Mode;
                radaroptions.legend.position = "bottom";
                if (_options.Player == true)
                {
                    radaroptions.title.text = "Player " + radaroptions.title.text;
                }
                chartoptions = radaroptions;
            }
            else
            {
                ChartJsoptionsBar baroptions = new ChartJsoptionsBar();
                chartoptions = baroptions;

                ChartJSoptionsScalesY yAxes = new ChartJSoptionsScalesY();
                yAxes.scaleLabel.labelString = "% - " + _options.Startdate.ToString("yyyy-MM-dd") + " - " + _options.Enddate.ToString("yyyy-MM-dd") + " - " + IsDefaultFilter();
                if (_options.BeginAtZero == true)
                {
                    yAxes.ticks.beginAtZero = true;
                }

                chartoptions.scales.yAxes.Add(yAxes);
            }

            chartoptions.title.display = true;
            chartoptions.title.text    = _options.Mode;
            if (_options.Player == true)
            {
                chartoptions.title.text = "Player " + chartoptions.title.text;
            }
            return(chartoptions);
        }