Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8689625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T23:41:42+00:00 2026-06-12T23:41:42+00:00

I am using GWT api for google charts and having some issues: colums from

  • 0

I am using GWT api for google charts and having some issues:

  • colums from the start and end values missing for the column chart

Clustered ColumnChart

  • BarChart width is trimmed is half for first/last value

Stacked BarChart

To solve this I tried viewWindowMode property

HorizontalAxisOptions opt = HorizontalAxisOptions.create();
opt.set("viewWindowMode","pretty");

but this does not work.

Any ideas on how to solve?

Code:

private Options createOptions(ChartDataProxy response) {


        Options options = Options.create();
        options.setWidth(chartPanel.getOffsetWidth() - 2 * chartBorderWidth);
        options.setHeight(chartPanel.getOffsetHeight() - 2 * chartBorderWidth);

        HorizontalAxisOptions opt = HorizontalAxisOptions.create();
        opt.setTitle(response.getxAxisName());
        opt.setSlantedText(true);
        opt.set("viewWindowMode","pretty");

        options.setHAxisOptions(opt);

        AxisOptions vopt = AxisOptions.create();
        vopt.setTitle( response.getyAxisName());
        vopt.set("viewWindowMode","pretty");

        options.setVAxisOptions(vopt);

        options.setTitle(response.getCaption() + " " + response.getSubCaption());
        options.setLegend( LegendPosition.BOTTOM );

        options.setPointSize(4);

        return options;
    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T23:41:44+00:00Added an answer on June 12, 2026 at 11:41 pm

    I’m having similar problem, although I was using javascript. Maybe, you can adapt it into GWT.

    Basically DataView can fix it. You just need to handle the first column with DataView and return whatever you need to return when not using DataView — however, as string. I (don’t) know, it’s weird.

    Given I had two columns: date, number. I will use this kind of code:

    var data = new google.visualization.DataTable();
    
    data.addColumn('date', 'month');
    data.addColumn('number', 'users');
    
    // trick to prevent the bar chart from being cut in half at both edge of our graph
    var dataView = new google.visualization.DataView(data);
    dataView.setColumns([{calc: function(data, row) { return data.getFormattedValue(row, 0); }, type:'string'}, 1]);
    
    var chart = new google.visualization.ColumnChart(document.getElementById('chart_monthly_users'));
    chart.draw(dataView, options);
    

    Hope it helps. I merely gather the scattered solutions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using this api http://gwt-google-apis.googlecode.com/svn/javadoc/maps/1.1/index.html , the GWT Google Maps API, in my
I am trying to do some basic geocoding using the google maps API and
I've created a map using google maps v3 api for GWT. I'm trying to
I am using gwt with google maps api and i have a set of
I'm using the google maps API with GWT to create a tabbed infowindow with
I am using GWT ext and trying to get the values from page and
I'm using the GWT google maps V3 API and I need to display custom
I want to publish message on Facebook's fan page using JAVA/GWT API. Any one
When using GWT I get following warning: Referencing deprecated class 'com.google.gwt.user.client.rpc.SerializableException' While it's only
I'm working on a web-app using Google App Engine with GWT, and I need

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.