Ejemplo n.º 1
0
 /// <summary>
 /// Raises the <see cref="E:System.Web.UI.Control.Load" /> event.
 /// </summary>
 /// <param name="e">The <see cref="T:System.EventArgs" /> object that contains the event data.</param>
 protected override void OnLoad(EventArgs e)
 {
     base.OnLoad(e);
     if (!IsPostBack)
     {
         hfTabs.Value = "group";
         lSlidingDateRangeHelp.Text = SlidingDateRangePicker.GetHelpHtml(RockDateTime.Now) +
                                      "<h3>Doughnut Chart</h3><p>This chart represents the combined total of decline reasons that were selected.  In some cases, decline reasons are provided so this chart may be empty.</p>";
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Raises the <see cref="E:System.Web.UI.Control.Load" /> event.
        /// </summary>
        /// <param name="e">The <see cref="T:System.EventArgs" /> object that contains the event data.</param>
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            var chartStyleDefinedValueGuid = this.GetAttributeValue("ChartStyle").AsGuidOrNull();

            lcAmount.Options.SetChartStyle(chartStyleDefinedValueGuid);
            bcAmount.Options.SetChartStyle(chartStyleDefinedValueGuid);
            bcAmount.Options.xaxis = new AxisOptions {
                mode = AxisMode.categories, tickLength = 0
            };
            bcAmount.Options.series.bars.barWidth = 0.6;
            bcAmount.Options.series.bars.align    = "center";

            if (!Page.IsPostBack)
            {
                BuildDynamicControls();
                LoadDropDowns();
                LoadSettingsFromUserPreferences();

                lSlidingDateRangeHelp.Text = SlidingDateRangePicker.GetHelpHtml(RockDateTime.Now);
            }
        }