Hi Daniel

OK. My Code in HTML is:
 <script type="text/javascript" 
src="https://www.gstatic.com/charts/loader.js";></script>
  <script type="text/javascript">
    google.charts.load("current", {packages:['corechart']});
    google.charts.setOnLoadCallback(drawChart);
    function drawChart() {
      var data = google.visualization.arrayToDataTable([
        ["Element", "aktueller Betrag", { role: "style" } ],
        ["PORTOFORTUNA", 300, "#513a43"],
        ["EYES OPEN", 15330, "6f664c"],
        ["GREEN ETHIOPIA", 1330, "74676c"]
        
      ]);

      var view = new google.visualization.DataView(data);
      view.setColumns([0, 1,
                       { calc: "stringify",
                         sourceColumn: 1,
                         type: "string",
                         role: "annotation" },
                       2]);

      var options = {
        title: "",
        width: 600,
        height: 400,
        bar: {groupWidth: "95%"},
        legend: { position: "none" },
      };
      var chart = new 
google.visualization.ColumnChart(document.getElementById("columnchart_values"));
      chart.draw(view, options);
  }
  </script>

and in the html-File is:

<div id="columnchart_values"></div>

but if I (any version) open the page in Safari appears nothing! In all 
other browsers the chart is displayed.

Thanks fpr Help. Markus


Am Montag, 14. März 2016 15:22:10 UTC+1 schrieb Daniel LaLiberte:
>
> Hi Markus,
>
> I am not sure what you are asking.  What are you seeing?  It would be best 
> if you could point us at a complete example that demonstrates what you are 
> seeing.  
>
> On Sun, Mar 13, 2016 at 2:38 PM, Markus Weiss <[email protected] 
> <javascript:>> wrote:
>
>> Hi Daniel..Thanks,,.but why does not the chart in all Safari browsers ???
>>
>> Am Dienstag, 8. März 2016 15:37:18 UTC+1 schrieb Daniel LaLiberte:
>>>
>>> There is an example of using currency on this page:   
>>> https://google-developers.appspot.com/chart/interactive/docs/customizing_axes#number-formats
>>> Select 'Currency' in the dropdown.   
>>>
>>> On Tue, Mar 8, 2016 at 7:14 AM, Markus Weiss <[email protected]> wrote:
>>>
>>>> Hi Daniel...
>>>> OK. Have me a sample code)? Am newbie to JavaScript. Thank you!
>>>>
>>>>
>>>> Am Montag, 7. März 2016 15:49:27 UTC+1 schrieb Daniel LaLiberte:
>>>>
>>>>> Hi Markus,
>>>>>
>>>>> For currencies, usually you will just use numbers, and then specify 
>>>>> the currency in the format.   See 
>>>>> https://developers.google.com/chart/interactive/docs/reference#numberformat
>>>>> and also the 'format' option for the LineChart:  
>>>>> https://developers.google.com/chart/interactive/docs/gallery/linechart
>>>>>
>>>>> On Sun, Mar 6, 2016 at 5:01 AM, Markus Weiss <[email protected]> 
>>>>> wrote:
>>>>>
>>>>>> Hello I am new to things Google Charts
>>>>>> I have a LineChart where I want to display amounts. What must i to 
>>>>>>  for amounts in a currency of my choice to display? My current code is:
>>>>>>
>>>>>>  function drawChart() {
>>>>>>       var data = google.visualization.arrayToDataTable([
>>>>>>         ["Element", "aktueller Betrag in CHF", { role: "style" } ],
>>>>>>         ["PORTOFORTUNA", 300, "#513a43"],
>>>>>>         ["EYES OPEN", 15330, "6f664c"],
>>>>>>         ["GREEN ETHIOPIA", 1330, "74676c"]
>>>>>>         
>>>>>>       ]);
>>>>>>
>>>>>> Thanks for your help
>>>>>> Markus
>>>>>>
>>>>>> -- 
>>>>>> You received this message because you are subscribed to the Google 
>>>>>> Groups "Google Visualization API" group.
>>>>>> To unsubscribe from this group and stop receiving emails from it, 
>>>>>> send an email to 
>>>>>> [email protected].
>>>>>> To post to this group, send email to [email protected]
>>>>>> .
>>>>>> Visit this group at 
>>>>>> https://groups.google.com/group/google-visualization-api.
>>>>>> To view this discussion on the web visit 
>>>>>> https://groups.google.com/d/msgid/google-visualization-api/92fc8874-62a2-480b-8564-01459d443cda%40googlegroups.com
>>>>>>  
>>>>>> <https://groups.google.com/d/msgid/google-visualization-api/92fc8874-62a2-480b-8564-01459d443cda%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> -- 
>>>>> Daniel LaLiberte 
>>>>> <https://plus.google.com/100631381223468223275?prsrc=2>
>>>>> [email protected]   5CC, Cambridge MA
>>>>>
>>>> -- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "Google Visualization API" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>> an email to [email protected].
>>>> To post to this group, send email to [email protected].
>>>> Visit this group at 
>>>> https://groups.google.com/group/google-visualization-api.
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/google-visualization-api/9d5b9554-b200-4f4a-bbe7-6530a5772809%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/google-visualization-api/9d5b9554-b200-4f4a-bbe7-6530a5772809%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>
>>>
>>> -- 
>>> Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
>>> [email protected]   5CC, Cambridge MA
>>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Google Visualization API" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] 
>> <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at 
>> https://groups.google.com/group/google-visualization-api.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/google-visualization-api/e1f0d14d-6cc4-497f-bd5c-ec8cdbc92832%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/google-visualization-api/e1f0d14d-6cc4-497f-bd5c-ec8cdbc92832%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
> [email protected] <javascript:>   5CC, Cambridge MA
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/0a03b510-c4ec-4a61-8ce9-04776136d346%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to