charts

excel chart not updating when data changed by vba

偶尔善良 提交于 2021-01-29 04:41:24
问题 I have a Bubble chart that I am trying to add "motion" to by having a macro update the table and subsequently the chart. I have a cell that I use as the "offset" which is used by my data table to get the data. I have a button that runs a VBA macro that updates this "offset" cell for each month in my data, which updates the data table when the offset updates. When I alter the offset cell manually, both the table and chart update. However, when I click the button and run the VBA macro, only the

excel chart not updating when data changed by vba

时光总嘲笑我的痴心妄想 提交于 2021-01-29 04:40:29
问题 I have a Bubble chart that I am trying to add "motion" to by having a macro update the table and subsequently the chart. I have a cell that I use as the "offset" which is used by my data table to get the data. I have a button that runs a VBA macro that updates this "offset" cell for each month in my data, which updates the data table when the offset updates. When I alter the offset cell manually, both the table and chart update. However, when I click the button and run the VBA macro, only the

google charts vAxis ticks multiple colors

家住魔仙堡 提交于 2021-01-29 04:31:01
问题 i achieved the color using vAxis: { title: 'Rating (scale of 1-10)' , ticks: [{ v: 8.5 , f: 'A' }, { v: 4.5 , f: 'B' }, { v: 2 , f: 'C' }] , gridlines: { color: "#00FF00" } } How to place multiple colors in the grid lines, i need a,b and c different colors, Thanks in advance 回答1: there are no standard options that could be set but you could change the colors manually, when the chart's 'ready' event fires the gridlines will be <rect> elements, with height="1" see following working snippet...

Adding a chart in Google Sheets with Google Script

旧城冷巷雨未停 提交于 2021-01-29 04:30:45
问题 I'm trying to add a chart in a sheet on Google Sheets but Google Script is saying "Cannot find method insertChart(Charts.Chart). (line 39, file "Code")". But I'm using the method that written in the documentation. What am I doing wrong ? function doGet() { var app = SpreadsheetApp; var ss = app.getActiveSpreadsheet(); var sheet = ss.getActiveSheet(); // var artistsArray; var dataArtists; // artists = {}; dataArtists = Charts.newDataTable() .addColumn(Charts.ColumnType.STRING, 'Artists')

Google chart, formatted dynamic h-axis is not working

不羁的心 提交于 2021-01-29 03:10:04
问题 Graph image link which is generated when hardcoding in h-axis ticks I have to draw a line chart where I have to apply x-axis ticks dynamically. Columns in chart are as follows: data.addColumn('number', 'Equity'); // x-axis ticks data.addColumn('number', 'A'); //series one data.addColumn('number', 'B'); //series two I am adding data in rows is like given below, there can be multiple rows which is known only at run time. So I have to insert all the rows dynamically. data.addRow([2, 0.8, null]);

Google Charts Get maximum scale

时光怂恿深爱的人放手 提交于 2021-01-29 02:29:43
问题 I'm trying to make an all positive bubble chart have quadrants by drawing the quadrants using the baseline property like so: var dataT = google.visualization.arrayToDataTable(.....); var options = { hAxis: {title: 'h axis',baseline:100}, vAxis: {title: 'v axis',baseline:20}, ...} var chart = new google.visualization.BubbleChart(...); chart.draw(dataT,options); Except the graph will keep changing depending on the query so the baselines will not be the same for all the graphs. I would like to

Uncaught (in promise) TypeError: Cannot read property '0' of undefined at drawChart

不问归期 提交于 2021-01-28 19:05:50
问题 //Ajax call $(document).ready(function (data) { $("#btnGo").click(function () { console.log("ready!"); $.ajax({ url: '/api', type: 'POST', contentType: 'application/json', dataType: 'JSON', data: JSON.stringify({ startDate: $("#one").val(), endDate: $('#two').val() }), success: function (data) { var x = [data.x.count, data.x2.count, data.x3.count, data.x4.count] //data.x.count is getting from an api call where it will show count like 5 drawChart(x) } }); }); }); //bar chart google.charts.load

Google Chart Column hide option

為{幸葍}努か 提交于 2021-01-28 18:11:57
问题 I am using Google Chart to show my bubble chart. I used x, y number to locate the bubble, So I don't want to show the xnumber and ynumber column when i put cursor on.. How can I do that? Thanks a lot. enter image description here var options = { title: 'bubble graph', //legend:{position:'none'}, hAxis: { baseline:0, maxValue:200}, vAxis: { baseline:0, maxValue:100}, bubble: {textStyle: {fontSize: 11}}, width : '100%', height : '400px', backgroundColor: "transparent", tooltip: {trigger:

Google Chart Column hide option

こ雲淡風輕ζ 提交于 2021-01-28 18:10:52
问题 I am using Google Chart to show my bubble chart. I used x, y number to locate the bubble, So I don't want to show the xnumber and ynumber column when i put cursor on.. How can I do that? Thanks a lot. enter image description here var options = { title: 'bubble graph', //legend:{position:'none'}, hAxis: { baseline:0, maxValue:200}, vAxis: { baseline:0, maxValue:100}, bubble: {textStyle: {fontSize: 11}}, width : '100%', height : '400px', backgroundColor: "transparent", tooltip: {trigger:

Add HTML to Google Line Chart tool tip

有些话、适合烂在心里 提交于 2021-01-28 14:27:19
问题 I want to add a line on tooltip of Cats line chart. Note: My note goes here.. Now when we hover cats chart,we can see like Jan 1, 2020 Cats:10, percent: 0% Below this line I want to add the Note line (in grey color and reduced font-size than other tooltip). So the tooltip will look like: Jan 1, 2020 Cats:10, percent: 0% Note: My note goes here.. Below is my chart code: google.charts.load('current', { packages: ['corechart'] }); google.setOnLoadCallback(prepareChartData); function