FusionWidget 의 기본 클래스입니다. document : http://www.fusioncharts.com/widgets/docs/
Inheritance: ChartBase
コード例 #1
0
        private static void BuildAnnotations(WidgetBase widget) {
            widget.Annotations.AutoScale = true;

            var annGroup = new AnnotationGroupElement { X = 175, Y = 105 };
            var textAnnotation = new TextAnnotation { X = 0, Y = 0, Label = "Current status", Color = "666666" };
            textAnnotation.FontAttr.FontSize = "11";
            textAnnotation.Align = FusionTextAlign.Center;
            annGroup.Add(textAnnotation);
            widget.Annotations.Add(annGroup);

            annGroup = new AnnotationGroupElement { Id = "GrpRED", X = 175, Y = 125, Visible = false };
            var circle = new CircleAnnotation
                         { X = 0, Y = 0, Radius = 10, FillPattern = FillMethod.Radial, Color = "FFBFBF,FF0000" };
            circle.Border.Show = false;
            annGroup.Add(circle);
            widget.Annotations.Add(annGroup);

            annGroup = new AnnotationGroupElement { Id = "GrpYELLOW", X = 175, Y = 125, Visible = false };
            circle = new CircleAnnotation { X = 0, Y = 0, Radius = 10, FillPattern = FillMethod.Radial, Color = "FFFF00,BBBB00" };
            circle.Border.Show = false;
            annGroup.Add(circle);
            widget.Annotations.Add(annGroup);

            annGroup = new AnnotationGroupElement { Id = "GrpGREEN", X = 175, Y = 125, Visible = false };
            circle = new CircleAnnotation { X = 0, Y = 0, Radius = 10, FillPattern = FillMethod.Radial, Color = "00FF00,339933" };
            circle.Border.Show = false;
            annGroup.Add(circle);
            widget.Annotations.Add(annGroup);
        }
コード例 #2
0
 private static void AddTrendPoints(WidgetBase chart) {
     var point = new PointElement
                 {
                     StartValue = 79,
                     DisplayValue = "Previous",
                     Color = "#666666".FromHtml(),
                     Thickness = 2,
                     Dashed = true,
                     DashLen = 3,
                     DashGap = 3,
                     UseMarker = true,
                     MarkerColor = "#F1F1F1".FromHtml(),
                     MarkerBorderColor = "#666666".FromHtml(),
                     MarkerRadius = 7
                 };
     chart.TrendPoints.Add(point);
 }
コード例 #3
0
 private static void BuildStyles(WidgetBase widget) {
     widget.Styles.Definition.Add(new NSoft.NFramework.FusionCharts.FontStyle("myValueFont")
                                  {
                                      Font = "맑은 고딕",
                                      Size = 10,
                                      Color = Color.Red,
                                      BgColor = "#F1F1F1".FromHtml(),
                                      BorderColor = "#999999".FromHtml()
                                  });
     widget.Styles.Application.Add(new ApplyElement
                                   {
                                       ToObject = "Value",
                                       Styles = "myValueFont"
                                   });
     widget.Styles.Application.Add(new ApplyElement
                                   {
                                       ToObject = "Label",
                                       Styles = "myValueFont"
                                   });
 }
コード例 #4
0
 private static void BuildAlerts(WidgetBase widget) {
     widget.Alerts.Add(new AlertElement
                       {
                           MinValue = 0,
                           MaxValue = 75,
                           Action = AlertActionKind.PlaySound,
                           Param = WebTool.GetScriptPath("~/alerts/Waterloo.mp3")
                       });
     widget.Alerts.Add(new AlertElement
                       {
                           MinValue = 0,
                           MaxValue = 75,
                           Action = AlertActionKind.ShowAnnotation,
                           Param = "GrpRED"
                       });
     widget.Alerts.Add(new AlertElement
                       {
                           MinValue = 75,
                           MaxValue = 90,
                           Action = AlertActionKind.ShowAnnotation,
                           Param = "GrpYELLOW"
                       });
     widget.Alerts.Add(new AlertElement
                       {
                           MinValue = 90,
                           MaxValue = 100,
                           Action = AlertActionKind.ShowAnnotation,
                           Param = "GrpGREEN"
                       });
 }