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 403089
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T17:11:05+00:00 2026-05-12T17:11:05+00:00

I’m pulling my hair out on this problem. I would like to show a

  • 0

I’m pulling my hair out on this problem.

I would like to show a very simple vertical bar graph which will represent the amount of sales during a week. So the data it would be fed is:

Sunday: 200
Monday : 50
Tue: 500
Wed: 300
Thu: 145
Fri: 0
Sat: 976

This would only be for a single given week, and I want the graph to show the sales data between the days to compare them and see which day had the most number of sales, etc.

Then I’ll want two other similar graphs, one for monthly sales, e.g

January: 2000
Feb: 1490
..
December: 4553

And an yearly graph e.g:

2006: 20000
...
2009 30000

Again the comparison will be just between the 7 days of the week, 12 months of the year, or 4-5 years.

I need a url which can be used to create these graphs, where I can just hook in my own data and the rest of the stuff would work by itself. Out of the chart types I’d like to use ‘Vertical bar graph’ (code bvs).

One thing which can be a problem is the ‘encoding’ of the graphs, google charts seems to want you to give it an encoding which means a range between 0-500 or 0-6950, but I have no way of knowing which encoding the sales amounts would fall into, they could either be very little sales or very much.

  • 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-12T17:11:06+00:00Added an answer on May 12, 2026 at 5:11 pm

    Here’s the day of the week URL:

    http://chart.apis.google.com/chart?cht=bvs&chs=500x300&chd=t:200,50,300,145,0,976&chds=0,1000&chm=tMonday,000000,0,0,10|tTuesday,000000,0,1,10|tWednesday,000000,0,2,10|tThursday,000000,0,3,10|tFriday,000000,0,4,10|tSaturday,000000,0,5,10
    

    cht is the chart type, bhs is the basic bar graph

    chs is the chart size, in widthxheight

    chd is your data, and I’m not using the encoding that Google allows to shorten URLs.

    chds is a data scaling (optional), in which I’m saying that the minimum value is 0 and the max value is 1000.

    chm is your labels. Each label is separated by a ‘|’ symbol. Each label is comples of a t (type text), followed by the label, then command and a color (RGB hex value, RRGGBB), then which data series to label (you only have 1, so using 0), then the data point to label (starting with 0 for the 1st one), then the point size of the font to use. There’s one more omitted value that is “when to draw the label”, since I left it out, it’s drawn after bars but before other labels.

    See the data point labels documentation, the chart basics documentation, and the data scaling documentation for more info.

    UPDATE: Changed chart type from bhs to bvs after re-reading OP.
    UPDATE 2: Updated white space for readability

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

Sidebar

Related Questions

No related questions found

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.