internal override Hashtable ToHashtable() { Hashtable hashtables = new Hashtable(); bool? allowDecimals = this.AllowDecimals; bool? allowDecimalsDefaultValue = this.AllowDecimals_DefaultValue; if ((allowDecimals.GetValueOrDefault() == allowDecimalsDefaultValue.GetValueOrDefault() ? allowDecimals.HasValue != allowDecimalsDefaultValue.HasValue : true)) { hashtables.Add("allowDecimals", this.AllowDecimals); } if (this.AlternateGridColor != this.AlternateGridColor_DefaultValue) { hashtables.Add("alternateGridColor", this.AlternateGridColor); } double?angle = this.Angle; double?angleDefaultValue = this.Angle_DefaultValue; if ((angle.GetValueOrDefault() == angleDefaultValue.GetValueOrDefault() ? angle.HasValue != angleDefaultValue.HasValue : true)) { hashtables.Add("angle", this.Angle); } if (this.Breaks.IsDirty()) { hashtables.Add("breaks", this.Breaks.ToHashtable()); } if (this.Categories != this.Categories_DefaultValue) { hashtables.Add("categories", this.Categories); } angleDefaultValue = this.Ceiling; angle = this.Ceiling_DefaultValue; if ((angleDefaultValue.GetValueOrDefault() == angle.GetValueOrDefault() ? angleDefaultValue.HasValue != angle.HasValue : true)) { hashtables.Add("ceiling", this.Ceiling); } if (this.ClassName != this.ClassName_DefaultValue) { hashtables.Add("className", this.ClassName); } if (this.Crosshair.IsDirty()) { hashtables.Add("crosshair", this.Crosshair.ToHashtable()); } if (this.DateTimeLabelFormats != this.DateTimeLabelFormats_DefaultValue) { hashtables.Add("dateTimeLabelFormats", this.DateTimeLabelFormats); } if (this.Description != this.Description_DefaultValue) { hashtables.Add("description", this.Description); } allowDecimalsDefaultValue = this.EndOnTick; allowDecimals = this.EndOnTick_DefaultValue; if ((allowDecimalsDefaultValue.GetValueOrDefault() == allowDecimals.GetValueOrDefault() ? allowDecimalsDefaultValue.HasValue != allowDecimals.HasValue : true)) { hashtables.Add("endOnTick", this.EndOnTick); } if (this.Events.IsDirty()) { hashtables.Add("events", this.Events.ToHashtable()); } angle = this.Floor; angleDefaultValue = this.Floor_DefaultValue; if ((angle.GetValueOrDefault() == angleDefaultValue.GetValueOrDefault() ? angle.HasValue != angleDefaultValue.HasValue : true)) { hashtables.Add("floor", this.Floor); } if (this.GridLineColor != this.GridLineColor_DefaultValue) { hashtables.Add("gridLineColor", this.GridLineColor); } if (this.GridLineDashStyle != this.GridLineDashStyle_DefaultValue) { YAxisGridLineDashStyle gridLineDashStyle = this.GridLineDashStyle; hashtables.Add("gridLineDashStyle", Highcharts.FirstCharacterToLower(gridLineDashStyle.ToString())); } if (this.GridLineInterpolation != this.GridLineInterpolation_DefaultValue) { YAxisGridLineInterpolation gridLineInterpolation = this.GridLineInterpolation; hashtables.Add("gridLineInterpolation", Highcharts.FirstCharacterToLower(gridLineInterpolation.ToString())); } angleDefaultValue = this.GridLineWidth; angle = this.GridLineWidth_DefaultValue; if ((angleDefaultValue.GetValueOrDefault() == angle.GetValueOrDefault() ? angleDefaultValue.HasValue != angle.HasValue : true)) { hashtables.Add("gridLineWidth", this.GridLineWidth); } angle = this.GridZIndex; angleDefaultValue = this.GridZIndex_DefaultValue; if ((angle.GetValueOrDefault() == angleDefaultValue.GetValueOrDefault() ? angle.HasValue != angleDefaultValue.HasValue : true)) { hashtables.Add("gridZIndex", this.GridZIndex); } if (this.Id != this.Id_DefaultValue) { hashtables.Add("id", this.Id); } if (this.Labels.IsDirty()) { hashtables.Add("labels", this.Labels.ToHashtable()); } if (this.LineColor != this.LineColor_DefaultValue) { hashtables.Add("lineColor", this.LineColor); } angleDefaultValue = this.LineWidth; angle = this.LineWidth_DefaultValue; if ((angleDefaultValue.GetValueOrDefault() == angle.GetValueOrDefault() ? angleDefaultValue.HasValue != angle.HasValue : true)) { hashtables.Add("lineWidth", this.LineWidth); } angle = this.LinkedTo; angleDefaultValue = this.LinkedTo_DefaultValue; if ((angle.GetValueOrDefault() == angleDefaultValue.GetValueOrDefault() ? angle.HasValue != angleDefaultValue.HasValue : true)) { hashtables.Add("linkedTo", this.LinkedTo); } angleDefaultValue = this.Max; angle = this.Max_DefaultValue; if ((angleDefaultValue.GetValueOrDefault() == angle.GetValueOrDefault() ? angleDefaultValue.HasValue != angle.HasValue : true)) { hashtables.Add("max", this.Max); } if (this.MaxColor != this.MaxColor_DefaultValue) { hashtables.Add("maxColor", this.MaxColor); } angle = this.MaxPadding; angleDefaultValue = this.MaxPadding_DefaultValue; if ((angle.GetValueOrDefault() == angleDefaultValue.GetValueOrDefault() ? angle.HasValue != angleDefaultValue.HasValue : true)) { hashtables.Add("maxPadding", this.MaxPadding); } angleDefaultValue = this.Min; angle = this.Min_DefaultValue; if ((angleDefaultValue.GetValueOrDefault() == angle.GetValueOrDefault() ? angleDefaultValue.HasValue != angle.HasValue : true)) { hashtables.Add("min", this.Min); } if (this.MinColor != this.MinColor_DefaultValue) { hashtables.Add("minColor", this.MinColor); } angle = this.MinPadding; angleDefaultValue = this.MinPadding_DefaultValue; if ((angle.GetValueOrDefault() == angleDefaultValue.GetValueOrDefault() ? angle.HasValue != angleDefaultValue.HasValue : true)) { hashtables.Add("minPadding", this.MinPadding); } angleDefaultValue = this.MinRange; angle = this.MinRange_DefaultValue; if ((angleDefaultValue.GetValueOrDefault() == angle.GetValueOrDefault() ? angleDefaultValue.HasValue != angle.HasValue : true)) { hashtables.Add("minRange", this.MinRange); } angle = this.MinTickInterval; angleDefaultValue = this.MinTickInterval_DefaultValue; if ((angle.GetValueOrDefault() == angleDefaultValue.GetValueOrDefault() ? angle.HasValue != angleDefaultValue.HasValue : true)) { hashtables.Add("minTickInterval", this.MinTickInterval); } if (this.MinorGridLineColor != this.MinorGridLineColor_DefaultValue) { hashtables.Add("minorGridLineColor", this.MinorGridLineColor); } if (this.MinorGridLineDashStyle != this.MinorGridLineDashStyle_DefaultValue) { YAxisMinorGridLineDashStyle minorGridLineDashStyle = this.MinorGridLineDashStyle; hashtables.Add("minorGridLineDashStyle", Highcharts.FirstCharacterToLower(minorGridLineDashStyle.ToString())); } angleDefaultValue = this.MinorGridLineWidth; angle = this.MinorGridLineWidth_DefaultValue; if ((angleDefaultValue.GetValueOrDefault() == angle.GetValueOrDefault() ? angleDefaultValue.HasValue != angle.HasValue : true)) { hashtables.Add("minorGridLineWidth", this.MinorGridLineWidth); } if (this.MinorTickColor != this.MinorTickColor_DefaultValue) { hashtables.Add("minorTickColor", this.MinorTickColor); } if (this.MinorTickInterval != this.MinorTickInterval_DefaultValue) { hashtables.Add("minorTickInterval", this.MinorTickInterval); } angle = this.MinorTickLength; angleDefaultValue = this.MinorTickLength_DefaultValue; if ((angle.GetValueOrDefault() == angleDefaultValue.GetValueOrDefault() ? angle.HasValue != angleDefaultValue.HasValue : true)) { hashtables.Add("minorTickLength", this.MinorTickLength); } if (this.MinorTickPosition != this.MinorTickPosition_DefaultValue) { YAxisMinorTickPosition minorTickPosition = this.MinorTickPosition; hashtables.Add("minorTickPosition", Highcharts.FirstCharacterToLower(minorTickPosition.ToString())); } angleDefaultValue = this.MinorTickWidth; angle = this.MinorTickWidth_DefaultValue; if ((angleDefaultValue.GetValueOrDefault() == angle.GetValueOrDefault() ? angleDefaultValue.HasValue != angle.HasValue : true)) { hashtables.Add("minorTickWidth", this.MinorTickWidth); } angle = this.Offset; angleDefaultValue = this.Offset_DefaultValue; if ((angle.GetValueOrDefault() == angleDefaultValue.GetValueOrDefault() ? angle.HasValue != angleDefaultValue.HasValue : true)) { hashtables.Add("offset", this.Offset); } allowDecimals = this.Opposite; allowDecimalsDefaultValue = this.Opposite_DefaultValue; if ((allowDecimals.GetValueOrDefault() == allowDecimalsDefaultValue.GetValueOrDefault() ? allowDecimals.HasValue != allowDecimalsDefaultValue.HasValue : true)) { hashtables.Add("opposite", this.Opposite); } if (this.PlotBands != this.PlotBands_DefaultValue) { hashtables.Add("plotBands", base.HashifyList(this.PlotBands)); } if (this.PlotLines != this.PlotLines_DefaultValue) { hashtables.Add("plotLines", base.HashifyList(this.PlotLines)); } allowDecimalsDefaultValue = this.Reversed; allowDecimals = this.Reversed_DefaultValue; if ((allowDecimalsDefaultValue.GetValueOrDefault() == allowDecimals.GetValueOrDefault() ? allowDecimalsDefaultValue.HasValue != allowDecimals.HasValue : true)) { hashtables.Add("reversed", this.Reversed); } allowDecimals = this.ReversedStacks; allowDecimalsDefaultValue = this.ReversedStacks_DefaultValue; if ((allowDecimals.GetValueOrDefault() == allowDecimalsDefaultValue.GetValueOrDefault() ? allowDecimals.HasValue != allowDecimalsDefaultValue.HasValue : true)) { hashtables.Add("reversedStacks", this.ReversedStacks); } allowDecimalsDefaultValue = this.ShowEmpty; allowDecimals = this.ShowEmpty_DefaultValue; if ((allowDecimalsDefaultValue.GetValueOrDefault() == allowDecimals.GetValueOrDefault() ? allowDecimalsDefaultValue.HasValue != allowDecimals.HasValue : true)) { hashtables.Add("showEmpty", this.ShowEmpty); } allowDecimals = this.ShowFirstLabel; allowDecimalsDefaultValue = this.ShowFirstLabel_DefaultValue; if ((allowDecimals.GetValueOrDefault() == allowDecimalsDefaultValue.GetValueOrDefault() ? allowDecimals.HasValue != allowDecimalsDefaultValue.HasValue : true)) { hashtables.Add("showFirstLabel", this.ShowFirstLabel); } allowDecimalsDefaultValue = this.ShowLastLabel; allowDecimals = this.ShowLastLabel_DefaultValue; if ((allowDecimalsDefaultValue.GetValueOrDefault() == allowDecimals.GetValueOrDefault() ? allowDecimalsDefaultValue.HasValue != allowDecimals.HasValue : true)) { hashtables.Add("showLastLabel", this.ShowLastLabel); } angleDefaultValue = this.SoftMax; angle = this.SoftMax_DefaultValue; if ((angleDefaultValue.GetValueOrDefault() == angle.GetValueOrDefault() ? angleDefaultValue.HasValue != angle.HasValue : true)) { hashtables.Add("softMax", this.SoftMax); } angle = this.SoftMin; angleDefaultValue = this.SoftMin_DefaultValue; if ((angle.GetValueOrDefault() == angleDefaultValue.GetValueOrDefault() ? angle.HasValue != angleDefaultValue.HasValue : true)) { hashtables.Add("softMin", this.SoftMin); } if (this.StackLabels.IsDirty()) { hashtables.Add("stackLabels", this.StackLabels.ToHashtable()); } angleDefaultValue = this.StartOfWeek; angle = this.StartOfWeek_DefaultValue; if ((angleDefaultValue.GetValueOrDefault() == angle.GetValueOrDefault() ? angleDefaultValue.HasValue != angle.HasValue : true)) { hashtables.Add("startOfWeek", this.StartOfWeek); } allowDecimals = this.StartOnTick; allowDecimalsDefaultValue = this.StartOnTick_DefaultValue; if ((allowDecimals.GetValueOrDefault() == allowDecimalsDefaultValue.GetValueOrDefault() ? allowDecimals.HasValue != allowDecimalsDefaultValue.HasValue : true)) { hashtables.Add("startOnTick", this.StartOnTick); } if (this.Stops != this.Stops_DefaultValue) { hashtables.Add("stops", base.HashifyList(this.Stops)); } angle = this.TickAmount; angleDefaultValue = this.TickAmount_DefaultValue; if ((angle.GetValueOrDefault() == angleDefaultValue.GetValueOrDefault() ? angle.HasValue != angleDefaultValue.HasValue : true)) { hashtables.Add("tickAmount", this.TickAmount); } if (this.TickColor != this.TickColor_DefaultValue) { hashtables.Add("tickColor", this.TickColor); } angleDefaultValue = this.TickInterval; angle = this.TickInterval_DefaultValue; if ((angleDefaultValue.GetValueOrDefault() == angle.GetValueOrDefault() ? angleDefaultValue.HasValue != angle.HasValue : true)) { hashtables.Add("tickInterval", this.TickInterval); } angle = this.TickLength; angleDefaultValue = this.TickLength_DefaultValue; if ((angle.GetValueOrDefault() == angleDefaultValue.GetValueOrDefault() ? angle.HasValue != angleDefaultValue.HasValue : true)) { hashtables.Add("tickLength", this.TickLength); } angleDefaultValue = this.TickPixelInterval; angle = this.TickPixelInterval_DefaultValue; if ((angleDefaultValue.GetValueOrDefault() == angle.GetValueOrDefault() ? angleDefaultValue.HasValue != angle.HasValue : true)) { hashtables.Add("tickPixelInterval", this.TickPixelInterval); } if (this.TickPosition != this.TickPosition_DefaultValue) { YAxisTickPosition tickPosition = this.TickPosition; hashtables.Add("tickPosition", Highcharts.FirstCharacterToLower(tickPosition.ToString())); } if (this.TickPositioner != this.TickPositioner_DefaultValue) { hashtables.Add("tickPositioner", this.TickPositioner); Highcharts.AddFunction("YAxisTickPositioner.tickPositioner", this.TickPositioner); } if (this.TickPositions != this.TickPositions_DefaultValue) { hashtables.Add("tickPositions", this.TickPositions); } angle = this.TickWidth; angleDefaultValue = this.TickWidth_DefaultValue; if ((angle.GetValueOrDefault() == angleDefaultValue.GetValueOrDefault() ? angle.HasValue != angleDefaultValue.HasValue : true)) { hashtables.Add("tickWidth", this.TickWidth); } if (this.TickmarkPlacement != this.TickmarkPlacement_DefaultValue) { YAxisTickmarkPlacement tickmarkPlacement = this.TickmarkPlacement; hashtables.Add("tickmarkPlacement", Highcharts.FirstCharacterToLower(tickmarkPlacement.ToString())); } if (this.Title.IsDirty()) { hashtables.Add("title", this.Title.ToHashtable()); } if (this.Type != this.Type_DefaultValue) { YAxisType type = this.Type; hashtables.Add("type", Highcharts.FirstCharacterToLower(type.ToString())); } allowDecimalsDefaultValue = this.Visible; allowDecimals = this.Visible_DefaultValue; if ((allowDecimalsDefaultValue.GetValueOrDefault() == allowDecimals.GetValueOrDefault() ? allowDecimalsDefaultValue.HasValue != allowDecimals.HasValue : true)) { hashtables.Add("visible", this.Visible); } return(hashtables); }