kiranmaroju-zz / dwpe

Automatically exported from code.google.com/p/dwpe
MIT License
0 stars 0 forks source link

Allow embbed links over the charts #33

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
is it possible to load from the table values links to write them over the chart?

for example:

<td><a href="link.html">20%</a></td>

this tag will create a bar, a pie slice or just a line in a graph. Anyway this 
value is written on the graphic. Can we also get the link on the value and 
write it over the visualize:

<li class="visualize-label-pos" style="left: 132px; top: 44px;"><a 
href=""><span class="visualize-label" style="right: 0px; top: 0px; font-size: 
7.75px; margin-right: -14.5px; margin-top: -5.5px;">13.33%</span></a></li>

This code is collected from a pie chart page.

Original issue reported on code.google.com by alysson....@gmail.com on 18 Aug 2010 at 8:09

GoogleCodeExporter commented 8 years ago
I did some changes over the JS and CSS to support links. Now if you wrap an 
anchor over the TD value that link is also activated over the graphic, making 
the perceptual a link to the same page.

Just update your visualize.jQuery.js and visualize.css / visualize-light.css as 
well with the files below

Original comment by alysson....@gmail.com on 23 Aug 2010 at 1:37

Attachments:

GoogleCodeExporter commented 8 years ago
Hi Can it is applicable for area chart th or is only applicable for pie 
chart.If it is applicable only for pie chart can any one solve the same for 
area chart 

Original comment by ramprasa...@gmail.com on 25 Aug 2010 at 11:56

GoogleCodeExporter commented 8 years ago
This requirement would not be accessible because it would fail accessibility 
concept that link text must clearly and unambiguously identify the target of 
each link. Since the main goal of this plugin is to provide an accessible 
plugin, I don't think it should be added to the project.

Thatb being said, nothing stops you from cerating you own version with this 
feature.

Original comment by Laurent....@gmail.com on 30 Sep 2010 at 8:02

GoogleCodeExporter commented 8 years ago
Hi Laurent, can we also refer the labelval to the title, ensuring everyone will 
be identified with a unique title?

ie:

var labeltext = $('<a href="' + labellinkchart[labellinkchartIndex] +'" 
title="Check the details for ' + spanClass + '"><span class="' + spanClass + '" 
title="' + labelval +'">' + labelval +'</span></a>')

Original comment by alysson....@gmail.com on 23 Nov 2010 at 8:20

GoogleCodeExporter commented 8 years ago
That could work, maybe not ideal but better than anything. Can you show an 
example of what it would look like populated with values?

Original comment by Laurent....@gmail.com on 23 Nov 2010 at 8:55