Percentage Formula - GOOGLE SHEETS - google-sheets-query

I now have a new keyboard (Thanks Ken White)
I need the following Percentage Formula: If M7 is a percentage (eg 15%). Then I want N7 to display 15% of the number in B7.
I've been working at this for many hours (tutorials, etc.) - it seems like it would be a simple formula, but I can't seem to break it.
I've tried working with the following {=IF(M7*B7=0,,M7*B7)} that I copied from another formula.

Nothing to do with Google's Visualization API Query Language, but perhaps achieves the result you wanted:
=if(cell("type",M7)="v",B7*M7,"")

Related

Using Anychart to plot volume on the same plot window of stock price

I am exploring AnyChart JS to plot candlestick stock chart. While Anychart.js has a dedicated component to plot trading volume on a second plot window, I am used to seeing volume plotted at the bottom of the price chart window. It just looks cleaner this way. The document does not mention plotting volume like this but that it can clearly be done as demo on one of their pages. ( page here: https://www.anychart.com/products/anystock/overview/ )
So I am wondering if anyone know of an "official way" of plotting volume in the same window of stock price or we have to hack it by plotting a second series (perhaps a third series even so we can show different colour of up and down days).
The source code of this sample is available in the AnyStock gallery. The idea is to create a second series (Volume) on the plot and apply a custom series height and logarithmic scale to it.
Anychart support team provided the source code as per the sample shown in the earlier comment.
You need lines 48 - 67 in the sample -
playground.anychart.com/BVHPxBya – AnyChart Support 2 hours

provide custom datalabel to google chart using apps script

I am creating a google scatter chart using google apps script EmbeddedChart Option.
Below is the datatable that I want to assign to the chart.
The first column goes to x axis labels and graph is getting generated for NPP and Noise values.
NPP Noise
-1.28, -7.84625, 2.33
-1.83, -12.561, 4.55
I need to set the datalabels for each scatter point in the graph and its working with setting "datalabel" to "value". But my requirement is to display different text as data labels not the value. Like below, I have added a column datalabel and given the values for each point.
NPP Noise DataLabel
-1.28, -7.84625, 2.33, Spring
-1.83, -12.561, 4.55, Hibernate
Can I display this labels as datalabel on the scatter points?
Code:
var chart = NormalGraphSheet.newChart()
.setChartType(Charts.ChartType.SCATTER)
.setPosition(2, 1, 7, 6) .addRange(normalPlotCalculationsSheet.getRange(tableStartRow,2, noOfCols, 4))
.setOption('series', {0: {pointSize: 14, color: 'red'},1: {pointSize:0},2: {pointSize: 10, color: 'green'}})
.setOption('trendlines', {1: {type: 'linear',color:'blue',lineWidth:2,opacity:80}}).build(); NormalGraphSheet.insertChart(chart);
Okay, so I googled and looked around the community for quite sometime, and managed to see this very similar post, only difference I can see is the data you guys use, the first top answer suggests just adding a Tool tip for each of the data points, which I'm guessing is not what you want.
The second top answer suggests using the Visualization API, which is the same as to this accepted answer from WebApps Community (with a similar concern), though the second answer seems to demonstrate that custom data labels are automatically included when formatted in a specific way:
First column: X axis
Second column: Y axis
Third column: Data label
When looked at in the customization tab via spreadsheets, the value of Data Label is shown as Custom though when trying to manually do a chart, and going to the Data Label drop-down again, it only shows None and Value. So I think, since you are doing the chart via the script, it better for you to use the Visualization API. Hope this helps you somehow. Good luck.

TableChart in GAS, what are the different options for setOptions()

I can't find an exhaustive list.
I'm trying to set the font size on a TableChart, but can't figure out how or if it's even possible. Searching the internet yielded no source of information on the different options available.
I know you can do the following:
setOption('height' : '100%')
for example, but
setOption('font-size' : '16pt')
and
setOption('fontSize' : '16pt')
Don't seem to work. Any help is appreciated.
Thanks,
Marc
It's not possible, unfortunately. I've tried to style my Table Charts as well, but ended up going with a FlexTable for some of it.
The options are listed in the documentation for the Google Visualization API, which the Charts Service uses (and the Apps Script documentation mentions).

Georeferencing of image (like Google Floor Plans)

I have a building floor plan and I need to specify its position on top of google map.
I like the way this is done in Google Floor Plans app - screenshot(the right part with map) - but I cannot figure out how they made it! :)
What part in Google Maps API I should look at?
In short - I have an image (plan of floor), and need to show it on top of Google Map and be able to manipulate with it (changing dimensions on events).
I'm thinking you'll want to implement a custom overlay. That link provides the relevant instructions for doing so. Also, Google provides a simple example so you can see the result here. Is that sort of what you're going for?
#Cianan Sims: Well, sure, I want custom overlay, but how is the question :-)
Fortunately, Google published tool called Overlay Tiler, which does exactly what I wanted - georeferencing of the image.

Google map region boundary have mutiple line

We have implemented google map boundary in our site www.kozaza.com.Yesterday we noticed that multiple lines showing on region boundary.Can you help me to resolve this issue. I believe this is something related with google map code, because we haven't touched our code for last 1 month.
Sounds like google updated their map tiles. You should be able to style the map to remove the existing boundaries if you can't find data for borders that matches them.
Looks like they don't match the boundaries in the Natural Earth data set either: