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 align data label based on positive / negative value
- Consider 0 number of hits for omitted dates
- Highcharts: plotbands in gauge charts
- Highcharts : trouble with axis Label
- highcharts tooltip stop update when mouse over
- How do I put box-shadow to Bar(point) on hover of Highcharts?
- Adding Text into Center of Pie Graph highcharts
- highcharts how to hide legendSymbol in front of particular legend name?
- Pie Chart tooltip thousand seperator and rtl labels doesn't work in highchart
- How to draw line plus bar chart using highcharts/d3.js or any other chart library?
- Highchart.js is not working properly in pure IE8
- Error when using Highcharts with Angular 2
- Remove "G" from linear colorAxis in highmaps
- Highcharts datalables enabled for one series and one point on the chart via chart function
- Change type of points of highchart's scatter chart
- Highcharts to get Combined Bar and line charts
- Javascript - Page slow to show after not being the active tab
- highchart with numberformat (unit)
- Highcharts - chartanimation step by step
- High Charts add variance instead of values
- use image to fill bars in highchart?
- Setting tick interval dynamically in highstock chart
- Issue: In case of multiLineSeries Graph if one of the series has no Data, the entire graph does not get plotted
- Highcharts: Update several series at once, for smoother animation
- Highcharts write xaxis values on 2 different lines
- Highcharts plotBackgroundColor on spider chart
- How to re-render a graph at a given interval that retrieves data from a controller in Rails?
- Custom Label Show Percentage on Highcharts
- Highcharts query
- JavaScript new Date() Returning NaN in IE, Safari