Как сделать выделение сразу по всем линиям графика

40 views
Skip to first unread message

Артемий Гаврюшин

unread,
Mar 3, 2016, 7:32:33 AM3/3/16
to Google Visualization API

Как сделать, чтобы появлялись данные по срезу, сразу по всем линиям.

В google chart я вижу, что можно увидеть информацию за нужную дату, но только по одной линии - http://prntscr.com/aan93b

Daniel LaLiberte

unread,
Mar 3, 2016, 8:47:01 AM3/3/16
to Google Visualization API
Check outthe aggregationTarget option.   

var options = { ...
  aggregationTarget: 'category'
}


--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/24cf4a70-62d5-46f2-bc2d-9beedaea520a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Sergey Grabkovsky

unread,
Mar 3, 2016, 9:46:27 AM3/3/16
to Google Visualization API
I think Dan meant the focusTarget option. Is this something like what you wanted? http://jsfiddle.net/115qhga7/


For more options, visit https://groups.google.com/d/optout.
--

unnamed.gif

Sergey Grabkovsky

Software Engineer

Google, Inc

gra...@google.com


Артемий Гаврюшин

unread,
Mar 3, 2016, 10:00:31 AM3/3/16
to Google Visualization API
Да, но мне необходимо также видеть вертикальную полосу.

Sergey Grabkovsky

unread,
Mar 3, 2016, 10:03:16 AM3/3/16
to Google Visualization API
Then you can use the focusTarget option in conjunction with the crosshairs option. Here are some examples of how to use crosshairs: https://developers.google.com/chart/interactive/docs/crosshairs

And here is my original example modified to include vertical crosshairs: http://jsfiddle.net/115qhga7/1/

On Thu, Mar 3, 2016 at 10:00 AM Артемий Гаврюшин <arte...@gmail.com> wrote:
Да, но мне необходимо также видеть вертикальную полосу.

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.

For more options, visit https://groups.google.com/d/optout.

Артемий Гаврюшин

unread,
Mar 3, 2016, 11:07:09 AM3/3/16
to Google Visualization API
Thank you!

Артемий Гаврюшин

unread,
Mar 10, 2016, 10:22:26 AM3/10/16
to Google Visualization API
А можно ли "crosshair" задачи ширину полоски?

четверг, 3 марта 2016 г., 15:32:33 UTC+3 пользователь Артемий Гаврюшин написал:

Sergey Grabkovsky

unread,
Mar 10, 2016, 10:26:37 AM3/10/16
to Google Visualization API
Sorry, this is not currently possible.

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages