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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T09:11:45+00:00 2026-06-10T09:11:45+00:00

I made a chart using Google Visualization’s ColumnChart like this. It’s basically a stacked

  • 0

I made a chart using Google Visualization’s ColumnChart like this.

enter image description here

It’s basically a stacked column chart using 3 x 7 matrix. In every bar, I remove the data for two other rows.
My problem is how to make the yellow bar (or other bar) looks like it has been clicked from the start using the Javascript code. Just like below.

enter image description here

*Notice the light border in the yellow bar.

  • 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-10T09:11:46+00:00Added an answer on June 10, 2026 at 9:11 am

    You can programmatically select a bar by calling setSelection() on the chart. This can only be done after the “ready” event has been fired, i.e. you can set the selection upon this event being triggered as follows:

    google.visualization.events.addListener(chart, 'ready', readyHandler);
    
    function readyHandler(e) {
        chart.setSelection([{"row":1,"column":1}]);
    }
    

    Here’s a working example where we programmatically select the second bar after the chart has been drawn: http://jsfiddle.net/FFEZT/

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

Sidebar

Related Questions

I have a column chart that I made using Adobe Flash Builder. I'd like
Currently i have made a bar chart from a listbox from this example: http://weblogs.thinktecture.com/cnagel/2011/06/wpf-listbox-as-bar-chart.html
I've a graph chart like below made using css and knockout.js (binding) Depending on
This is a chart that I have made using d3.js. I want my bars
I need to create the column chart/Bar chart using CSV data. Here's the data's
I'm making (time series) moutain chart using JFreeChart. So, i made 2 timeseries -
So I have this chart that's a little special. Kind of like an XY
I have a pie chart which is made using UIBezierPath's. I now need those
I am using Google visualization api. Following is my sample code. Either of the
I made a pie chart using the jqPlot and the pie chart did render,

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.