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

  • SEARCH
  • Home
  • 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 3401258
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T04:59:36+00:00 2026-05-18T04:59:36+00:00

When making a chart is it possible to center the origin of the axes

  • 0

When making a chart is it possible to center the origin of the axes into the middle so that a cross of axes shows up?
We use a workaround, by setting the grid so that the grid line falls to the (0,0) point
But then you can not use a finer lined grid layer for better visual guidance.
Is it possible without workaround?
For example with the following chart?

http://chart.apis.google.com/chart?chxt=x,y&chs=300×150&cht=s&chd=t:12,87,-75,41,23,96,68,71,34,9|98,60,27,34,56,-79,58,74,18,76|84,23,69,-81,47,94,60,93,64,-54

A accurate research in the chart api forum and the documentation showed only workarounds.
If no standard solution is available, can you think about a reason why google did not implement the positioning of axes?

  • 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-05-18T04:59:36+00:00Added an answer on May 18, 2026 at 4:59 am

    Seems to me that every google chart is on a [0% to 100%] range. Só if you want different values (like negative ones) you are going to need some arithmetics to accomplish it.

    I’ve also made a workaround to this problem. Using the grid with 50% step strategy. In my case, due to my X and Y axes ranging from -100 to 100 the function i’d have to apply to any values would be: f(v) = (v – 100) / 2.

    There’s one element that could be added to make this solution complete. If only the API provided multiple grids with different resolution (different step sizes) another finer lined grid layer could be added.

    IMHO google charts API provides lower level calls to control visual elements on charts. I’d say that the missing element here is the multiple grids to allow the finer lined layer. With those elements a upper level API could be built either by google or encapsulated on a wrapper lib like charts4j. This upper level API should handle arithmetics and issues like this two grids.

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

Sidebar

Related Questions

Currently i am looking into making a bar chart in my WPF application. Although
I'm making (time series) moutain chart using JFreeChart. So, i made 2 timeseries -
I'm making my first iphone application and it's a wine chart application. It's with
I'm making a chat application that works with long-polling to emulate a push from
I am making a simple byte buffer that stores its data in a char
I am in the process of making a website that involves a shopping cart.
I am making a bar chart and I want two separate gradients for each
Possible Duplicate: Determine device (iPhone, iPod Touch) with iOS I am making a game
I'm working on a section of code that has many possible failure points which
I have a chart I'm making in SSRS. My database is returning data like

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.