Exemplo n.º 1
0
 public GoogleChartAxis(string title, MeasurementUnitTypeEnum?measurementUnitTypeEnum, GoogleChartAxisLabelFormat?googleChartAxisLabelFormat)
 {
     Title             = title;
     TitleTextStyle    = new GoogleChartTextStyle();
     UseFormatFromData = true;
     Format            = googleChartAxisLabelFormat.ToString().ToLower();
     FormatOptions     = new GoogleChartFormatOptions(measurementUnitTypeEnum);
     ViewWindow        = null;
 }
 public GooglePieChartConfiguration(string chartTitle,
                                    MeasurementUnitTypeEnum measurementUnitTypeEnum,
                                    List <GooglePieChartSlice> googlePieChartSlices,
                                    GoogleChartType googleChartType,
                                    GoogleChartDataTable googleChartDataTable) : base(chartTitle,
                                                                                      true,
                                                                                      googleChartType,
                                                                                      googleChartDataTable,
                                                                                      new GoogleChartAxis("Year", null, null),
                                                                                      new List <GoogleChartAxis> {
     new GoogleChartAxis(null, measurementUnitTypeEnum, null)
 })
 {
     PieSliceTextStyle = new GoogleChartTextStyle("black");
     ChartArea         = new GoogleChartConfigurationArea(10, 10);
     Slices            = googlePieChartSlices;
 }