Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Text;
|
---|
4 | using JsonFx.Json;
|
---|
5 |
|
---|
6 |
|
---|
7 | namespace 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.