Search the Community
Showing results for tags 'fusionchartsmap'.
Found 1 result
-
Set the chart property of the "linkedchart" dynamically
SantoshNavle posted a topic in Using FusionMaps XT
Hi, I have been able to load a India Map using Fusincharts Map. Also on every click of state I have been able to render the respective state map dynamically using the below code On each EntityClick I have configure the link to drill down the respective state using the below method. "entityClick": function (evt, data) { // Method call configureLink(evt, data); } // Method defined var configureLink = function (evt, data) { switch (data.id) { case "001": evt.sender.configureLink({ "type": "maps/andamanandnicobar" }, 0);break; case "002": evt.sender.configureLink({ "type": "maps/andhrapradesh", }, 0);break; case "003": evt.sender.configureLink({ "type": "maps/arunachalpradesh" }, 0); break; //like wise i have loaded for each state. } } The above method works well and the respective district are loaded on every click of State. What i need is to configure the linkedchart dynamically "linkeddata": [{ "id": "001", "linkedchart": { "chart": { "caption": "State", "subcaption": "State", "entityFillHoverColor": "#E5E5E9", "showLabels": "1", "entityFillColor": "#A8A8A8", "theme": "fusion", "showBorder": "1", "bordercolor": "#FFFFFF", "entityborderThickness": "3" }, "colorrange": { "startlabel": "Low", "endlabel": "High", "code": "#e44a00", "minvalue": "0", "gradient": "1", "color": [{ "maxvalue": "150", "displayvalue": "Average", "code": "#f8bd19" }, { "maxvalue": "600", "code": "#6baa01" }] }, "data": [{ "id": "HI", "value": "99" }, //like wise load every district dynamically..... ], } }], How can i dynamically set all the above attributes for a chart within "linkedchart". ? Which event of a chart can help me to dynamically add the attributes whenever an entity is clicked on parent map (india map). Also every district i need to assign different color like for Maharashtra > Pune district i need an yellow color.. likewise for every district. For the attached image. I have loaded the India Map with custom color for every state. With the above methods i have dynamically configured the link for every click on the state. As you can see i have loaded the respective district also. How can i set the data and color on each data of the a particular district dynamically ? Please help ! Let me know if you need any more information I have been using FusionCharts Suite XT v3.15.1-sr.1