score:1
you need to provide the client in the url:
url(r'^api/chart/data/<str:client>$', chartdata.as_view()),
and then you just have it in your get
as a param:
def get(self, request, client):
i'm not sure why you have format=none there. it does not correspond to anything in your urls.py
also, i would recommend not using django rest framework's apiview
for something that is not an api view (e.g. you're rendering a page, not providing a rest api endpoint).
for that, just use plain django class based views.
Source: stackoverflow.com
Related Query
- Getting dynamic data for chart.js from Django model
- getting additional value fields from data source for dx.chartjs doughnut chart
- Chartjs random colors for each part of pie chart with data dynamically from database
- How to use 'time' (data from database, data type: timestamp ) for plotting graph in Chart JS
- ChartJS bar chart fixed width for dynamic data sets
- How do I customize y-axis labels and randomly pick the value from the data range for x-axis in Chart js
- Update Chart js chart dynamically in angular 2 from data getting from nodejs service
- Having trouble fetching data from database for chart in ASP .NET Core
- how to insert dynamic data from sql into chartjs stacked bar chart javascript
- Chart is not populating when getting the data from AJAX call
- How can I assign dynamic data from service via subscribe to doughnut chart in angular?
- Created an onclick function to remove data from a line chart in ChartsJs, but getting "Cannot read property 'data' of undefined" error
- Get data from dynamic ID for Chart.js
- Chartjs pie chart not showing from dynamic data
- Chart JS data labels getting cut
- Chart JS show multiple data points for the same label
- Move tooltip further from data point for Chart.js?
- Chartjs - data format for bar chart with multi-level x-axes
- Chart.js - Getting data from database using mysql and php
- (Vue, ChartJS) Create gradient background for chart from child component canvas context
- Show "No Data" message for Pie chart with no data
- Populating javascript chart with Razor model data
- Using data from API with Chart JS
- chart js with angular2 loading dynamic data only after zoomin
- Importing data from Model into a View gives me an error I cannot solve
- ChartJS (React) Line Chart - How to show single tooltip with data and labels from 3 (multiple) dataset?
- Chart not displaying from JSON data
- How to create chartjs chart with data from database C#
- chart is not getting updated from the values it received from Jquery
- Using data from model in Chart.js MVC c#
More Query from same tag
- How can I remove two labels from my legend with an alternative to item.datasetIndex !== 1 && item.datasetIndex !== 4; ? (Charts.js)
- ChartJS - Gradient color overlap
- Formatting Data With Charts.JS
- The chart is not getting shown when page is loaded
- Where do i add the begin at zero (chart.js)
- Changing the base of the logarithmic scale in Chart.js
- Possible to hide Chart.js grid lines that extend beyond chart?
- How to draw Horizontal line on Bar Chart Chartjs
- Is it possible to shorten outer labels on Radar graph using Chart.js, without affecting the other labels?
- Two tone colours in chart.js pie chart
- How to chart detected activities on the hour using Chart.js
- React + Chart.js 2.0: How to put a label inside of a doughnut chart?
- Manipulate chart.js based plots in R (radarchart)
- how to dynamicly change the json data in chartjs
- Is it possible to have tick stepSize for each dataset in Chart.js?
- ChartJs how can I move bar into new group?
- ERROR : syntax error, unexpected '$app' (T_VARIABLE), expecting ')'
- How to change font weight of footer in tooltips in Chart JS
- Can't get bar chart colors in Chart js working in React Js
- Chart.js v2: How to make tooltips always appear on pie chart?
- How scale sector in doughnut chartjs on hover?
- How to get dataset from MySQL using Flask?
- ChartJS autoskip:False not working on line chart
- Chartjs - onAnimationComplete fires before the animation actually completes
- Chartjs - how to change the notation of doughnut chart
- Charts.js: Using an object to graph
- charts.js update global variables
- Barchart reducing space between bars
- ChartJs doesn't display the line item legend
- How to export a chart.js chart to excel?