Exemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     (this.heatMap.Layers[0] as ShapeLayer).ShapeSettings.ColorMappings = new ColorMapping()
     {
         MappingCollection = new List <object>()
         {
             new RangeColorMapping()
             {
                 From = 10000001, To = 40000000, Color = "#F1ECD8"
             },
             new RangeColorMapping()
             {
                 From = 5000001, To = 10000000, Color = "#DEE2B9"
             },
             new RangeColorMapping()
             {
                 From = 1000001, To = 5000000, Color = "#CBD89A"
             },
             new RangeColorMapping()
             {
                 From = 500000, To = 1000000, Color = "#B8CE7B"
             }
         }
     };
     (this.heatMap.Layers[0] as ShapeLayer).DataSource = Election_Result.GetUSPopulationData();
     (this.heatMap.Layers[0] as ShapeLayer).ShapeData  = this.GetUSA();
 }
Exemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     (this.labels.Layers[0] as ShapeLayer).DataSource = Election_Result.GetUSPopulationData();
     (this.labels.Layers[0] as ShapeLayer).ShapeData  = this.GetUSA();
 }