google chart timeline, remove selection from selected item & customizing that timeline

511 views
Skip to first unread message

PCase

unread,
Aug 8, 2016, 5:10:32 AM8/8/16
to Google Visualization API
Hello everybody,

i am form germany and working on a timeline with selectable items (bars), calling an ajax post, which does some updates in my sql database. All is working great, just one thing deprives annoying me.

After i selected one item in my chart, the selection keeps alive (shown by a black border around my selected bar) and forbides me to select this bar again.

I tried: 

  • to remove the handler and add it after my script again
  • to add single event listener
  • to chart.setselection([]) to nothing

all failed, and i realy dont want to redraw the chart to remove the selection.

The second thing is to customize my chart. My Timeline haxis goes from monday to sunday and this 2 times, means i am showing 2 full weeks.

  • i couldnt figure it out how i can attached the names of the day to my haxis dates. E.g. today is the 8th august and my chart is showing 08.August. Better would be to show mo. 08.August.
  • i need to change the background for 2 columns, saturday and sunday. Nobody in my company is working on weekend, just if is really necessary.
I think the only way to do this, is to find these dates after the drawing and rename manually.

I would be really happy to find somebody helping me to figure this out.


greetings from germany,
PCase 
Reply all
Reply to author
Forward
0 new messages