source: code/Website/dot-net-library/written-by-xiao-yifang/OpenFlashChart/HBar.cs@ 7937

Last change on this file since 7937 was 7849, checked in by dennisw, 15 years ago
File size: 1.2 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Text;
4using JsonFx.Json;
5
6
7namespace OpenFlashChart
8{
9 public class HBarValue
10 {
11 private double left;
12 private double right;
13 private string tip;
14 public HBarValue(double left,double right)
15 {
16 this.Left = left;
17 this.Right = right;
18 }
19 public HBarValue(double left, double right,string tip)
20 {
21 this.Left = left;
22 this.Right = right;
23 this.tip = tip;
24 }
25 [JsonProperty("left")]
26 public double Left
27 {
28 get { return left; }
29 set { left = value; }
30 }
31 [JsonProperty("right")]
32 public double Right
33 {
34 get { return right; }
35 set { right = value; }
36 }
37
38 public string Tip
39 {
40 get { return tip; }
41 set { tip = value; }
42 }
43 }
44 public class HBar:BarBase
45 {
46 public HBar()
47 {
48 this.ChartType = "hbar";
49 }
50 public void Add(HBarValue hBarValue)
51 {
52 this.Values.Add(hBarValue);
53 }
54 }
55}
Note: See TracBrowser for help on using the repository browser.