Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Style cursor pointer en pie chart
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
james0928  
View profile   Translate to Translated (View Original)
 More options Aug 28 2012, 6:46 pm
From: james0928 <hector.jai...@elportal.com.co>
Date: Tue, 28 Aug 2012 15:46:23 -0700 (PDT)
Local: Tues, Aug 28 2012 6:46 pm
Subject: Style cursor pointer en pie chart

Hola, estoy generando una grafica de torta(pie chart), para mostrar ciertos
valores, los cuales quisiera que al pasar el mouse por encima de cada
porcion de la grafica el cursor se convierta en mano, ya que al dar click
sobre cada porcion me lleva a una pagina que le asigne. intente con
char_div.style.cursor:"hand", pero no funciono agradesco cualquier aporte


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
asgallant  
View profile  
 More options Aug 29 2012, 11:58 am
From: asgallant <drew_gall...@abtassoc.com>
Date: Wed, 29 Aug 2012 08:58:49 -0700 (PDT)
Local: Wed, Aug 29 2012 11:58 am
Subject: Re: Style cursor pointer en pie chart

You need to take a two-pronged approach to fix the problem.  You can use
pure CSS to do this in Firefox, Chrome, Safari, Opera, and IE 9.  In IE 8
and earlier, you need to modify the CSS inside the iFrame used by the
chart.  I wrote an example here: http://jsfiddle.net/asgallant/W3Pss/

The example uses the jQuery library to help with browser detection and
accessing the iFrame's contents.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
james0928  
View profile  
 More options Nov 15 2012, 5:59 pm
From: james0928 <hector.jai...@elportal.com.co>
Date: Thu, 15 Nov 2012 14:59:58 -0800 (PST)
Local: Thurs, Nov 15 2012 5:59 pm
Subject: Re: Style cursor pointer en pie chart

perdon por agradecer tan tarde, me fue de mucha ayuda, pero no funciona
para graficas de barras si me pudiera orientar tambien para las de barras
se lo agradezco muchisimo.

El miércoles, 29 de agosto de 2012 10:58:49 UTC-5, asgallant escribió:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
asgallant  
View profile  
 More options Nov 15 2012, 7:09 pm
From: asgallant <drew_gall...@abtassoc.com>
Date: Thu, 15 Nov 2012 16:09:17 -0800 (PST)
Local: Thurs, Nov 15 2012 7:09 pm
Subject: Re: Style cursor pointer en pie chart

Here's the version for BarCharts: http://jsfiddle.net/asgallant/euWwe/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
james0928  
View profile  
 More options Nov 16 2012, 8:43 am
From: james0928 <hector.jai...@elportal.com.co>
Date: Fri, 16 Nov 2012 05:43:45 -0800 (PST)
Local: Fri, Nov 16 2012 8:43 am
Subject: Re: Style cursor pointer en pie chart

Gracias por responder.

No se que estoy haciendo mal pero no me esta funcionando, aqui dejo el
codigo para ver si me puedes orientar.

css
.path_bar svg > g:nth-of-type(2) > g:nth-of-type(1) > g:nth-of-type(2) > g
    {
           cursor: pointer
    }

contenedor
<div class="path_bar" id="Chart_divAdministracion"></div>

javascript
<script type="text/javascript">
/*********************************************GENERAMOS LA
GRAFICA******************************************************/

    drawChartR();

    function drawChartR() {

        // Create the data table.
        var data = new google.visualization.DataTable();
        data.addColumn('string', 'Mes');
        data.addColumn('number', 'Ingresos');
        data.addRows([

                ['Enero',50000000],
                ['Febrero',40000000],

                ]);

        // Set chart options
        var options = {'title':'Ingresos Admin. Enero y febrero $90000000',
                       'width':400,
                       'height':300,
                       'min':0};

        var chartR = new
google.visualization.ColumnChart(document.getElementById('Chart_divAdminist racion'));

        chartR.draw(data, options);
      }
/*****************************************FIN
GRAFICA*****************************************************************/
</script>

lo esoty porbando en mozilla

El jueves, 15 de noviembre de 2012 19:09:18 UTC-5, asgallant escribió:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
james0928  
View profile   Translate to Translated (View Original)
 More options Nov 16 2012, 9:05 am
From: james0928 <hector.jai...@elportal.com.co>
Date: Fri, 16 Nov 2012 06:05:15 -0800 (PST)
Local: Fri, Nov 16 2012 9:05 am
Subject: Re: Style cursor pointer en pie chart

Haciendo pruebas me doy cuenta que no funciona cuando le pongo el atributo
title, si le quito el title a la grafica si toma el estilo, pero no
entiendo es porque pasa esto

El martes, 28 de agosto de 2012 17:46:23 UTC-5, james0928 escribió:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
asgallant  
View profile  
 More options Nov 16 2012, 11:51 am
From: asgallant <drew_gall...@abtassoc.com>
Date: Fri, 16 Nov 2012 08:51:41 -0800 (PST)
Local: Fri, Nov 16 2012 11:51 am
Subject: Re: Style cursor pointer en pie chart

The title adds another element to the DOM, which is probably pushing some
of the "g" elements down, so they aren't in the right place to be matched
by the "nth-of-type" css pseudo-selectors.  Try one of these and see if it
works:

.Path_bar svg > g:nth-of-type(2) > g:nth-of-type(1) > g:nth-of-type(3) > g {
    cursor: pointer;

}

.Path_bar svg > g:nth-of-type(2) > g:nth-of-type(2) > g:nth-of-type(2) > g {
    cursor: pointer;

}

.Path_bar svg > g:nth-of-type(3) > g:nth-of-type(1) > g:nth-of-type(2) > g {
    cursor: pointer;

}

I also noticed that you left out the javascript that handles IE < 9 -
that's fine if you don't have a user base with old versions of IE, or if
you don't care that they don't get the pointer cursor.  If you do need it
to work in IE < 9, you'll have to copy the javascript from my previous
post, and play around with the numbers in the ":eq(...)" selectors to match
the right elements.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
james0928  
View profile  
 More options Nov 16 2012, 2:48 pm
From: james0928 <hector.jai...@elportal.com.co>
Date: Fri, 16 Nov 2012 11:48:05 -0800 (PST)
Local: Fri, Nov 16 2012 2:48 pm
Subject: Re: Style cursor pointer en pie chart

Perfecto me funciono la ultima opcion que me envio

.Path_bar svg > g:nth-of-type(3) > g:nth-of-type(1) > g:nth-of-type(2) > g {
    cursor: pointer;

Muchas gracias hacia mucho llevaba lidiando con este problema y gracias a
usted lo e resuelto.

El viernes, 16 de noviembre de 2012 11:51:42 UTC-5, asgallant escribió:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
asgallant  
View profile  
 More options Nov 16 2012, 3:39 pm
From: asgallant <drew_gall...@abtassoc.com>
Date: Fri, 16 Nov 2012 12:39:56 -0800 (PST)
Local: Fri, Nov 16 2012 3:39 pm
Subject: Re: Style cursor pointer en pie chart

You're welcome.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »