• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

styling a tooltip title attribute for a div generating a bar for a bar chart with inline positioning

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a line of JavaScript that generates a bar for a bar chart.   Positioning of the bar is inline using variables passed in to the block containing the JavaScript code.    See next.



This all works as intended.   But I would like to style the title a little more.   I have tried several things resulting in the title disappearing or being in the bar.   Any guidance on this is appreciated.

Thanks
ct
 
Marshal
Posts: 67418
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

Why is the styling in the markup rather than being applied via CSS?
 
Bear Bibeault
Marshal
Posts: 67418
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm also wondering why the parameters are named like bX and so on. Makes things not-so-readable.

 
Craig Tussey
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This code line generates bar chart bars which are dynamic.   bX, bY, bW, bH, bC, bT are the x and y coordinates of the bar, the width and height, the color, and the tooltip.
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic