Hi Shahid, It looks like you're using the Material Bar Chart, and are attempting to use annotations. This will not work as lots of options (including annotations) are not yet supported for Material Charts <https://github.com/google/google-visualization-issues/issues/2143>. Your best bet would probably be to use a Classic Chart (from the 'corechart' package).
On Wed, Jan 20, 2016 at 12:57 PM Shahid Majeed <[email protected]> wrote: > Hi, > I am trying to add sales values inside the bar of the google bar chart. > But did not succeed. Please can someone help me. I have following markup. > > <%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" > AutoEventWireup="true" CodeFile="test.aspx.cs" Inherits="test" %> > <asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" > runat="Server"> > <script type="text/javascript" src="https://www.google.com/jsapi > "></script> > <script type='text/javascript'> > google.load('visualization', '1', { packages: ['bar'] }); > google.setOnLoadCallback(drawAntalChart); > function drawAntalChart() { > var data = google.visualization.arrayToDataTable([ > ['Projektledare', 'Sale', 'Avg Sale'], > ['Wiberg', 26030, 13015], > ['Andersson ', 461690, 19237.08], > ['Ranheimer', 304045, 33782.78]]); > > var options = { chart: { title: 'Projektledning: Sales' } }; > var chart = new > google.charts.Bar(document.getElementById('div_chart')); chart.draw(data, > options); > } </script> > </asp:Content> > <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" > runat="Server"> > <div id="div_chart" style="height: 400px; text-align: left;"></div> > </asp:Content> > > > Picture attached how the graph look. > > Thanks in advance > > -- > 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/5d68bf0e-eb70-46ab-8ff1-823b1663e48a%40googlegroups.com > <https://groups.google.com/d/msgid/google-visualization-api/5d68bf0e-eb70-46ab-8ff1-823b1663e48a%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- *[image: unnamed.gif]• Sergey Grabkovsky• Software Engineer• Google, Inc• [email protected] <[email protected]>* -- 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/CAEwwup4GZmwnDCVtXjU56s9qYONaCh-HJxhENWqHMx8fEVDKVQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
