Display thousound with point in Google chart API - charts

is there a way to display a thousand number in the format 1.200,55 instead of 1,200.55?
Thanks in advance for any help.

There is a section in the documentation about numberformats. What you'd need to set are decimalSymbol and groupingSymbol.
var formatter = new google.visualization.NumberFormat(
{decimalSymbol: ',', groupingSymbol: '.'});

Found another way in order to customize text for a country or language, affecting the formatting of values such as currencies, dates, and numbers.
https://developers.google.com/chart/interactive/docs/basic_load_libs#loadwithlocale

Related

Data Studio custom Number Format

How can I set thousand separators in Google Data studio. Instead of 203,206,502 I want to show 20,32,06,502. Kindly help
Set number to currency. in my case peso PHP

Google Sheets converting dates to numbers

I've run into a problem and haven't been able to find a solution for this via Google.
Using Google Sheets, I have a series of dates in the DD/MM/YYYY format in a column, and I'm filtering them based on info in another column with this formula in column G:
=ARRAYFORMULA(FILTER(D:D, B:B=B2))
where the dates are in column D. For example, 5/20/2013.
This works fine, but next, I want to add a string to the front of the dates like so:
=ARRAYFORMULA("End: "&FILTER(D:D, B:B=B2))
The dates are converting into numbers. So 5/20/2013 becomes End: 41414 instead of End: 5/20/2013, which is what I need.
Further, this happens whenever I try to reference a cell with a date in it in any formula. I have another column that puts together some values from other columns like this:
=IF(B:B=B2,ARRAYFORMULA(F2&" "&E2),"")
I want to add the date to that, like so:
=IF(B:B=B2,ARRAYFORMULA(F2&" "&E2&" "&G2),"")
The result I'm getting is the same, where I should see 5/20/2013 I'm instead getting 41414.
Can anyone tell me what's going on and how I can prevent it from converting my dates to numbers like that? Thanks!
In addition to Chris' answer: just converting to text should also work:
=ARRAYFORMULA("End: "&FILTER(to_text(D:D), B:B=B2))
You can format the formula output using TEXT, for example:
=ARRAYFORMULA("End: "&FILTER(TEXT(D:D,"mm/dd/yyyy"), B:B=B2))
=IF(B:B=B2,ARRAYFORMULA(F2&" "&E2&" "&TEXT(G2,"mm/dd/yyyy")),"")

Google sheets date format change

Google sheets default date format is 11/05/2014 I want it be like 12-Apr-2014
I already have done date format change but its not working.
Can anyone please tell me how do I change it?
Thanks
The formula would be
=TEXT(A1, "DD-MMM-YYYY")
This is considering that your date is in cell A1.

SmartGWT - Display date in yyyy/MM/dd format

I want to have the possibility to display a date with the possibility to enter the date manually.
For this I've uset the attribute useTextField set to true like:
setAttribute("useTextField", true);
Now I want the format of date to be yyyy/MM/dd.
I've tryed with
setAttribute("displayFormat ", "TOJAPANSHORTDATE");
setAttribute("inputFormat ", "YMD");
but nothing happen.
I need to use attributes.
What attribute should I use? And with what value?
Please, need help.
Thanks you a lot.
You can try
.setDisplayFormat(DateDisplayFormat.TOJAPANSHORTDATE);

Formatting a line chart

I have a line chart in a report (rdlc), that I cannot get formatted correctly. There are 2 main things I am trying to accomplish.
1) The x-axis is a date, right now it is being displayed as the full date with time, and I want it to be displayed as mm/dd/yyyy. I have attempted to change this by using =FormateDateTime(Fields!EndDate.Value, DateFormat.ShortDate) This is exactly how I saw it in Microsoft's examples, even the one included in VS2008 (what I am using), but for some reason it says that .ShortDate is and unrecognized identifier. I am thinking this might be a bug. So any ideas on how to get it into the mm/dd/yyyy format?
2) I want the values that are being plotted not to be there actual value but the previous values before added to the value. This is to accomplish a continual upward slope, showing the totals. I would also like to filter out zero's since the first 20 entries are so are 0. When I try to use the filter option it for some reason makes the chart just a flat line.
Any suggestions to any of these problems or a link to a good tutorial would be great as I am new to using these reports. Thanks!
Update: I have accomplished these by applying changes to the actual data being supplied, I would still like to know an easier better way to do this.
You can format the date in the lable under the general tab like this.
=Format(Fields!POWDate.Value, "M/dd/yyyy")
As of now I have fixed the problem by formating the data in the SQL query to the way I would like it to be displayed in the report.