charts

dc.js / d3.js - How to hide a bar chart x-axis category value if its bar value equals zero?

天大地大妈咪最大 提交于 2020-01-15 02:30:21
问题 I know this question has been asked before, but I have not found an answer that works for me. I looked into https://github.com/dc-js/dc.js/wiki/FAQ#filter-the-data-before-its-charted and tried the remove_empty_bins function but nothing changed. I also tried the filter_bins function but I am getting the error message "f is not a function". I am working on a dashboard. I want the bar charts to update such that the x-axis categories are removed from the graph when they are zero and will reappear

Ready event not working as expected

纵然是瞬间 提交于 2020-01-14 14:06:37
问题 I have tried to implement the ready event handler, basically copying from the Guide however I cannot get it to work. What am I missing? function drawVisualization() { ... ... ... table = new google.visualization.Table(document.getElementById('table1')); table.draw(dataTable, {width: 1100}); google.visualization.events.addListener(table, 'ready', resizeTable); } function resizeTable() { alert('Will this work?'); } //This code does not produce an alert 回答1: From google docs about Table events:

How can I programatically generate venn diagram images with labels on top of the image?

左心房为你撑大大i 提交于 2020-01-14 13:49:24
问题 I'm trying to generate Venn diagrams for a pdf report, with text on top of the distinct regions. We're using htmldoc to generate pdfs, which precludes text on top of background images. We use the google charts api for other images, but their Venn diagrams don't support text on top of the diagram (from what I can tell). The easiest path would be some way to generate an image of the venn on our server using a 3rd party library, and then link the image into the document, I just don't know any

SSRS stacked bar chart label position

ε祈祈猫儿з 提交于 2020-01-14 13:35:08
问题 I am using SQL Server 2012. SSRS I have a stacked bar charts that includes interest and dividends. I would like to add the sum of these values to the area just above the stacked bar chart. I have tried adjusting various properties for the labels but I can't get the label position to be anywhere but the middle of the stacked bar chart. Any ideas how to get these labels to be just above the stacked bar charts? 回答1: There is not a way to do this with settings. Here are a couple of links that

How to Increase size of Radar Chart MPAndoid Chart?

馋奶兔 提交于 2020-01-14 12:59:07
问题 I want to increase size of MPAndroid Radar Chart. I observed that the size increases gradually when i increase size of the chart itself, but I want the area to be same just Chart size should be increased. After adding following code: mChart.setScaleY(1.2f); mChart.setScaleX(1.2f); it is getting displaced 回答1: I think we can use a little hack to do that.I never worked on radar chart but if it supports zoom then we may zoom it when we create it to fit to our requirements. Again you have to test

How to Increase size of Radar Chart MPAndoid Chart?

独自空忆成欢 提交于 2020-01-14 12:59:00
问题 I want to increase size of MPAndroid Radar Chart. I observed that the size increases gradually when i increase size of the chart itself, but I want the area to be same just Chart size should be increased. After adding following code: mChart.setScaleY(1.2f); mChart.setScaleX(1.2f); it is getting displaced 回答1: I think we can use a little hack to do that.I never worked on radar chart but if it supports zoom then we may zoom it when we create it to fit to our requirements. Again you have to test

Chart.js Add Commas to Tooltip and Y-Axis

我怕爱的太早我们不能终老 提交于 2020-01-14 07:14:13
问题 I've tried some several answers here in stackoverflow but to no avail failed to make it work.. I'm really new in Chart.js so please bear with me. this is what I have tried so far. Add Commas to ChartJS Data Points and this Chart.js number format here's my code: thanks in advance. Chart.defaults.global.legend = { enabled: false }; function load_yearly_sales_per_agent(param_year, transaction_url){ $(".custom_loader").show(); $(".custom_graph").hide(); $.ajax({ url:transaction_url, type:'post',

Highcharts Column Chart Drilldown

和自甴很熟 提交于 2020-01-14 05:56:25
问题 Can anybody give an example of drill down functionality for column charts of Highcharts package? Here is the jsfiddle of the example from the Highcharts website but it is with static data. http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/demo/column-drilldown/ How to make it dynamic? Even if I implement the click function, how to know which column was clicked? How to refresh the same chart with drilldown data? I have complex XML which I

Create an average of multiple excel chart without the data source

▼魔方 西西 提交于 2020-01-14 03:13:09
问题 Thought provoking problem (for me at least). Normally when creating a chart you have your data and then use it to create the chart. If you then copy the chart to another workbook, the values on the chart stay the same but there is "no available" data source in the new workbook. I want to create a new chart which is the average of multiple copied charts. Is this possible in excel/vba? I can't even try recording a macro and going from there as I don't know if its possible to "average" multiple

Google Bubble Chart custom tooltip column does not render

雨燕双飞 提交于 2020-01-13 19:35:10
问题 I am trying to add a custom tooltip to a Bubble chart, to replace the default tooltip. I have followed the instructions from the docs site (here) to add a new string column to the DataTable, with role: 'tooltip' . However, you can see in the following JS fiddle example, that the custom tooltip content does not render. The chart still shows the default tooltip. Anyone know what I still need to do to get this custom tooltip content to show up? http://jsfiddle.net/MPBmY/2/ 回答1: I ended up making