score:2
i suppose your question is high-level and in two parts. this is not a coding answer because your question is too high-level. we don't even know what type of back end you have access too.
gather your data this part has nothing to do with d3.js and is dependent upon your back end. you need to show the user an html form with the question and possible answers to your survey. the form will post to your back end (asynchronously, perhaps) and persist the answer in some sort of a data store (usually a database).
display your data
you should have an endpoint in your web application for extracting the aggregate results from your survey. it should return the data in a form that can be read by javascript (json, perhaps?) so that you can reference it from your d3.js call to get the data. you can then use d3.js to display the data as a pie chart. if you have trouble writing your own pie chart, consider a boxed approach. you can also find examples of using the pie
layout in d3.js.
if you can give us any more information, i'd be happy to expand upon this answer further.
Source: stackoverflow.com
Related Query
- How do you create a survey that will immediately display the results as a pie chart on a website?
- How to display the pie chart legend with proper style so that the chart is visible
- How to display the value instead of percentage in a pie chart using jquery Highcharts
- how to display 2 same highcharts without duplicate the code
- How to display a clickable pie chart in the cell of a html table?
- how do you create muliple charts with the same options but with different data
- Highchart - How do I create the attached image gauge within a semicircle pie chart
- How can you change the length of the dial radius of a gauge that is already rendered?
- Rshiny Highcharter how can I create a piechart that drills down into another pie chart?
- how do you create custom buttons with highcharts that each data buttons calls anather php script for its data
- How do you reduce the space between pie chart and legend? (highcharts.js)
- How to modify the code so that Highcharts graph does not cover fixed navigation bar at the top of the page?
- Highcharts - How can I get the name to display in the pie wedges?
- How do you create a Hight Charts chart that updates every second with real data?
- highstocks, how can I bring values that I will only use on the 'click' option?
- how do you display only the latest poll data in highcharts
- Create Highcharts data label formatter that filters the data to display
- How do you change the colour of each category within a highcharts column chart?
- How to use the tooltip formatter and still display chart color (like it does by default)?
- How to hide labels in the highcharts in the pie
- How can I remove the white border from HighCharts pie chart?
- How do you increase the performance of highcharts chart creation and rendering
- Highcharts - How to display legend symbol inside the tooltip
- HighCharts - How to create dynamic chart that exports EVERYTHING
- How to change the font properties in a pie highchart?
- How do you add text to the bottom center of legend and bottom center of chart under legend?
- How do you increase the height of the x-axis labels area on a highchart.js chart?
- Highcharts: How do I set dynamic data to the drilldown pie chart?
- Highcharts, How can I change the datalable distance in a pie chart based on the value
- Highcharts: How to add an arrow head at the tip of a connector in a pie chart?
More Query from same tag
- Highcharts add a serie that does not exist
- Series markers disable on lines and enable on legend in Highchart
- Drilldown in grouped column chart with categories
- Get only visible x axis dates when zooming in highcharts
- alternative to deprecated Highcharts.each when using arrays within an array
- change json value's datatype in javascript
- Highcharts legend div not rendered and replaced by tspan
- Plotting an empty interval for elasticsearch date histogram
- Highcharts.js - placing text into the center of donut
- How to add an arrow reprents inscrease
- Highcharts stacked column how to use different label on each category
- Is there a way to have a toggled legend item save its state on refresh?
- jQuery ajax call inside ajax response returning HTML rather than JSON
- Highcharts How to display total of data classes in legend
- How to set variable in high chart data field
- Where to set displayed data vs plotted data in Highcharts?
- Highcharts with a thick line - at 0 values the line is half hidden
- Highcharts: How to resize chart from external JS?
- Why does my HighStock data drop off when I zoom out?
- Arearange highchart
- How to style two different legends in HighCharts
- HighCharts/HighStock memory leak with addPoints() in Chrome only
- highchart set data to series in xrange chart
- Dotnet Highchart Using JSON
- how to add text in top,left and bottom in funnel highcharts
- Disable series through configuration in highcharts
- Highcharts Bubble Chart - How to move an individual point's data label (dataLabel) to the front/top
- set a symbol marker with highchart
- Highstock and null values
- Datalabels is getting hidden outside the svg container in Sunburst Highchart