d3 / d3-selection

Transform the DOM by selecting elements and joining to data.

Home Page:https://d3js.org/d3-selection

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Display Bar chart in popup using D3.

sharseema opened this issue · comments

Hi,
I have done popup on map and working properly.I have district data but it is in two different formats (Json and CSV).So json file is used in OL3 and CSV file used in d3 to show the chart.Both files are having same attributes with same name.In this code Link , If user clicked on any district ,Popup chart will appear and inside popup chart , district name will change on x-Axis but the y-Axis value(B_75,B_90,B_2000,B_14) is not changing , only taking any random values and its constant .The y-Axis value is not iterating according to District name.How can i iterate y-Axis value in D3 and load only one District row in popup.

This is code Link ,in this code only one district data will display on console based on user click but not updating only y-Axis values.

Please use Stack Overflow tag d3.js to ask for help. Although I make an effort to assist everyone that asks, I am not always available to provide help promptly or directly. Stack Overflow provides a better collaborative forum for self-help: tens of thousands of D3-related questions have already been asked there, and some answered questions may be relevant to you.

When asking for help, please include a link to a live example that demonstrates the issue, preferably on bl.ocks.org. It is often impossible to debug from code snippets alone. Isolate the issue and reduce your code as much as possible before asking for help. The less code you post, the easier it is for someone to debug, and the more likely you are to get a helpful response.

If you have a question about D3’s behavior and want to discuss it with other users, also consider the d3-js Google Group or joining the d3-js Slack.

Thank you! 🤗