/Highchart/Highchart.UI/Core/PlotOptions/PlotOptionsBar.cs
C# | 36 lines | 32 code | 4 blank | 0 comment | 1 complexity | 93539bf509f9229eac33704bd1ad95b4 MD5 | raw file
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using Newtonsoft.Json;
-
- namespace Highchart.Core.PlotOptions
- {
- [Serializable]
- public class PlotOptionsBar : PlotOptionsSeries
- {
- public string borderColor { get; set; }
- public int? borderRadius { get; set; }
- public int? borderWidth { get; set; }
- public bool? colorByPoint { get; set; }
- public int? groupPadding { get; set; }
- public int? minPointLength { get; set; }
- public int? pointPadding { get; set; }
- public int? pointWidth { get; set; }
-
- public override string ToString()
- {
- string ignored = JsonConvert.SerializeObject(this, Formatting.None, new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore, DefaultValueHandling = DefaultValueHandling.Ignore });
-
- if (!string.IsNullOrEmpty(ignored))
- {
- return string.Format("plotOptions: {{ series: {0} }},", ignored);
- }
- else
- {
- return string.Empty;
- }
- }
-
- }
- }