Trying to hide/show all series in legend with click on 'deselect' option.

Hi Friends,
I am trying to hide/show all series in legend with click on 'deselect' option. Please see the code below, let me what change i need to do:
$(function () {
$('#container').highcharts({
chart: {
type: 'line',
marginRight: 130,
marginBottom: 25
title: {
text: 'Monthly Average Temperature',
x: -20 //center
subtitle: {
text: 'Source: WorldClimate.com',
x: -20
xAxis: {
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
yAxis: {
title: {
text: 'Temperature (°C)'
plotLines: [{
value: 0,
width: 1,
color: '#808080'
tooltip: {
valueSuffix: '°C'
legend: {
layout: 'vertical',
align: 'right',
verticalAlign: 'top',
x: -10,
y: 100,
borderWidth: 0
               plotOptions: {
series: {
events: {
legendItemClick: function(event) {
//var visibility = this.visible ? 'visible' : 'hidden';
// (!confirm('The series is currently '+
//visibility +'. Do you want to change that?')) {
// alert ('other legend');
                                                                 if (this.name == 'Deselect')
alert('hi');
series.hide();
//return false;
series: [{
name: 'Tokyo',
data: [7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6]
name: 'New York',
data: [-0.2, 0.8, 5.7, 11.3, 17.0, 22.0, 24.8, 24.1, 20.1, 14.1, 8.6, 2.5]
name: 'Berlin',
data: [-0.9, 0.6, 3.5, 8.4, 13.5, 17.0, 18.6, 17.9, 14.3, 9.0, 3.9, 1.0]
name: 'London',
data: [3.9, 4.2, 5.7, 8.5, 11.9, 15.2, 17.0, 16.6, 14.2, 10.3, 6.6, 4.8]
name: 'Deselect',
data: []
Edited by: oracle_student_777 on Mar 27, 2013 10:05 PM
Edited by: oracle_student_777 on Mar 28, 2013 4:08 AM
Edited by: oracle_student_777 on Mar 28, 2013 8:59 PM
Edited by: oracle_student_777 on Mar 28, 2013 11:15 PM

More generally, Show All will only show when the Organizer isn't showing all your photos.  For example, if you click on a tag to show just the photos with that tag, the Show All button will show up.
Alas, what I said above isn't completely true.   There are a number of situations where this rule doesn't hold:
- When you've restricted the photos shown to a date range using Find > Set Date Range.
- When you've restricted which media types to show using View > Media Types.
- When you type text quickly into the search box and hit enter (on a large catalog).

Similar Messages

  • My Iphone 4s Will not delete the songs I want it to. I've tried Turning off "Show All Music" and then swiping left on the song to delete it, but it wont give me the option to delete the songs. Please help. (this is iOS.7 btw)

    I've tried Turning off "Show All Music" and then swiping left on the song to delete it, but it wont give me the option to delete the songs. Please help. (this is iOS.7 btw) It only does this for some of the songs, but the rest of them I can delete. This is really annoying, please help me ASAP. Thank yall for your time

    I've tried Turning off "Show All Music" and then swiping left on the song to delete it, but it wont give me the option to delete the songs. Please help. (this is iOS.7 btw) It only does this for some of the songs, but the rest of them I can delete. This is really annoying, please help me ASAP. Thank yall for your time

  • I just updated to 10.8.4 and my mail program is showing a series of boxes with AAAAs inside them instead of the email addresses. Also when on Safari web pages are displaying the same AAAAAs instead of type. Firefox displays fine. Can someone help me?

    I just updated to 10.8.4 and my mail program is showing a series of boxes with AAAAs inside them instead of the email addresses. Also when on Safari web pages are displaying the same AAAAAs instead of type. Firefox displays fine. Can someone help me?

    Restart your Mac and immediately hold down the Shift key when you hear the startup chime to boot into Safe Mode. Keep holding the Shift key until you see a progress bar towards the bottom of the screen. You can let go of the Shift key at that point.
    OS X asks you to log in (you will get this screen on a Safe Mode boot even if your Mac is set to automatically log in). Let the Mac finish booting to the desktop and then restart normally. This will clear Font Book's database and the cache files of the user account you logged into in Safe Mode.
    Next, close all running applications. From an administrator account, open the Terminal app and enter the following command. You can also copy/paste it from here into the Terminal window:
    sudo atsutil databases -remove
    Terminal will then ask for your admin password. As you type, it will not show anything, so be sure to enter it correctly.
    This removes all font cache files. Both for the system and the current user font cache files. After running the command, close Terminal and immediately restart your Mac.

  • My ipad is no longer showing all my videos, even though i have the option set to show all, even those that are in my cloud. I can't do anything to get all my videos to re-appear. any help?

    My ipad is no longer showing all my vidoes, even though i have the option set to show all, even those that are in my cloud. Any suggestions??

    Close the videos app and launch it again.
    To close an app, drag the app up from the multitasking display. Double tap the home button and you will see apps lined up going left to right across the screen. Swipe to get to the app that you want to close and then swipe "up" on the app preview thumbnail to close it.
    if they still don't show up after you launch the app again, try resetting the iPad.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • Can't hide "Show All Bookmarks" in bookmarks menu in Fx 30

    Before, in Fx 29, I was able to hide the "Show All Bookmarks Ctrl+Shift+B" link in the bookmarks menu by adding this line of code into my userChrome.css file:
    #BMB_bookmarksShowAll { display: none !important; }
    With Fx 30, however, this does not seem to work. I am trying to hide that link in the menu that pops up when using the bookmarks button, not the menu bar. Thanks!

    Current Firefox releases have two of those "Show All Bookmarks" items: one on the top and one at the bottom of the list.
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    #BMB_bookmarksShowAllTop, #BMB_bookmarksShowAll { display:none!important; }
    </nowiki></pre>
    ----

  • Getting warning when trying to hide/show subforms

    hi,
    i have a pdf form with several subforms on it. I made the hide/show form option with the click event of some buttons.
    It worked fine.
    I then tried to do the same using the initialize method for the form.
    form1.page1.Subform1.presence = "hidden";
    It works ok. However i´m getting two warnings on designer preview. The warnings are
    unsupported 'presence=hidden' value on subform object 'Subform1'
    I know that somethimes the preview option of adobe designer is not the best way to test this. Could this be an error on my code or is it a "bug" from designer ? Should i rely on the form to work like this (with this warnings)?
    thanks

    Hi,
    the schema is already registered at another control center (belonging to another workspace).
    You cannot deploy from two different repositories into the same target schema.
    Unregister the location first from the old control center.
    Regards,
    Carsten.

  • Show all windows of application with a long click

    Does anyone know if there's a setting that will allow you show all of the windows of a specific application with a long click of the application's icon in the dock? I know I could do this in Snow Leopard just by clicking the icon. In Lion I need to right click on the icon and select "Show All Windows" which is a bit annoying.
    Thanks.
    Terry

    sdevan wrote:
    Right click on an application's icon in the dock.  Select Show All Windows.
    He knows it already LOL (have a look at the original post):
    In Lion I need to right click on the icon and select "Show All Windows" which is a bit annoying.

  • How do I show all Groups including Groups with Zero Sums

    Post Author: mchallinor
    CA Forum: Formula
    This is such a basic question I'm annoyed that I can't work out the answer myself!The report is very basic:"Total Sales"Grouped on Weeks of the Year. Data Report Range 01-01-2006 to 31-12-2006.The Group Summary Totals appear for all weeks where there is at least 1 sale within that Week.  But if there are NO sales for a week this does not appear as a Group Summary Total. Eg:Total Sales ReportWEEK 1Group Sum Total =      £3,004WEEK 2  Group Sum Total =      £9,000WEEK 3Group Sum Total =     £1,030WEEK 5Group Sum Total =      £900Report Grand Total =  £13,934There were no sales during WEEK 4 so no Group Sum appears. I need the report to look like the following:Total Sales Report  WEEK 1
    Group Sum Total =      £3,004
    WEEK 2 
    Group Sum Total =      £9,000
    WEEK 3
    Group Sum Total =     £1,030WEEK 4
    Group Sum Total =     £0
    WEEK 5
    Group Sum Total =      £900Report Grand Total =  £13,934How do I get the Group Sum to show for all groups even if the group sum is zero.Look forward to any suggestions.

    Post Author: bettername
    CA Forum: Formula
    Agreed - about the best way to overcome this is to have a 'dates' table in your db which has a simple structure of one column named 'date', filled from some date in the past to xxx years in the future, incrementing by a day at a time.  Ask your DB guys to add this in - it's a simple task (SQL code underneath)
    If you then use this as your 'starting point' table (and link your sales data to it on the date), and group by dates.date (or use it in your formula for grouping), you'll get the 'empty' groups.
    SQL CODE TO CREATE A SIMPLE DATES TABLE (-5 years from today to +5 years from today):
    create table crystal_dates (mydate datetime)
    declare @start datetimedeclare @end datetimedeclare @now datetimeset @start = dateadd(yy,-5,CONVERT(DATETIME,FLOOR(CONVERT(FLOAT, getdate()))))set @end = dateadd(yy,5,@start)set @now = @start
    while @now <=@endbegininsert into crystal_dates values (@now)set @now = dateadd(dd,1,@now)end

  • Hide/Show a graph based on button click .

    I have to show a graph based on the values selected in the shuttle . The graph should be drawn only when a button( "Show graph") is clicked . My question is
    1) If the set the button's action to submit, it resets and empties the selected values in the shuttle . How do I prevent that ?
    2) How do I make the graph appear and disappear based on the button click ( Like a toggle button ) ?
    3) As I can draw the graph only from the values selected in the shuttle , the query parsing fails . However , the graph displays when the shuttle get populated with selected values . Is there a way to get around that .
    Thanks for your help .

    There is nothing wrong with your code, so I'd look elsewhere for the problem. Is this a direct copy of what you have on your page?
    :P1_COMBO1 in ('Option 1', 'Option 2')
    And
    :P1_COMBO2 = 'Option Combo 2'And the page item values are exactly as you have in the quoted strings? You might run the page in debug and confirm the page item values are exact.
    Edited by: Bob37 on Dec 6, 2011 2:18 PM

  • For some reason, the last few apps I have tried to install, show just a faded app, with " waiting" underneath. I have pressed update but they have stayed the same for two weeks,

    Why won,t my apps download? They just say " waiting" below them. I have updated but they seem stuck for two weeks now

    Maybe .... One of these suggestions will work for you.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
    Make sure that you do not have a stalled download in iTunes - a song or podcast .... if you have a download in there that did not finish, complete that one first. Only one thing can download at a time on the iPad so that could be what is causing the problem.
    If that doesn't work - sign out of your account, restart the iPad and then sign in again.
    Settings>iTunes & App Store>Apple ID. Tap your ID and sign out. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Go back to Settings>iTunes & App Store>Sign in and then try to update again. Tap one waiting icon only if necessary to start the download stream.
    You can also try deleting the waiting icons - tap and hold down on an icon until it wiggles - the tap the X on the icon to delete it. Then try to download again.
    You can try resetting all settings. Settings>General>Reset>Reset All Settings. You will have to enter all of your app preferences and device settings again.
    If all else fails, download the updates or the apps in iTunes on your computer and then sync the content to your iPad.

  • New to itunes and trying to sync  show etc and getting synced with another

    I download a few free items in tv shows and music. when I try to sync I get a message that says my Iphone is synced with another Itunes library. Do you want to erase this iphone and sync with this itunes library. Whenever I see the word erase, it freaks me out a little. I don't have much on the phone but a bunch of contacts, some aps, and some pdf files in the ibooks. I would rather not erase those. Don't know if it even means it would erase everything or just any existing music files, etc.

    Ursus,
    On the sidebar,  "Devices" will only appear when your iPhone is connected to the computer.

  • OAF matester detail page : How to have a "Show All" feature on screen, so that all the master and details records are expanded .

    Hi ,
    I was trying to have a "SHOW ALL" feature on the master - detail page,
    the detail table is an advancec table.
    Please help me with inputs on how to have  "SHOW ALL" feature,
    Currently, we have to click on  ":Show" for each record at master level to view the child data.
    Trying to achive "Show All" Feature so that on click of this the master records on the page 'Expands"  showiing all master records with respective detail records.
    Regards
    bhuvanm

    Hi,
    You should not set DetailFlag = "Y" in whereclause because there is no such record.
    Also detail flag is transient attribute and not the query column, hence the error "Invalid indentifier".
    I asked you to use DetailFlag as query column with static value "Y".
    for example:
    SELECT "Y" detail_flag
    FROM <table_name>
    This will display all the table records in expanded format. if you want it conditionally then use decode on some bind parameters.
    For example:
    SELECT DECODE(:1, "SHOWALL", "Y", "N") detail_flag
    FROM <table_name>
    This bind parameter should be passed whenever you want to execute query for the table.
    Regards,
    Sandeep M.

  • How to get Hide/Show using details in advanced table

    Hi,
    I develeoped one custom page using advanced table region and i used detail from advanced table for getting hide/show functionaliy in one column in that table. It is showing hide/show properly..but if I click on Show it is not doing any action..pls let me need to write any code in CO for getting action..
    Thanks in advance,
    Hanimi......

    If you are using the same VO and you execute in on page load then it must populate all view attribute.
    Check in back end that is there any data in that VO attribute exists or not.
    Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                               

  • Illustrator CS3 Hide/show Extensions

    Setting 'show all extensions' in Finder preferences DOES NOT deselect Hide Extensions in window when saving files Illustrator CS3 (an maybe other CS3 apps).
    Bug has been submitted to Adobe. (I'm sure it ain't the only one.)
    Mac MBP OS10.5.4
    :>) Ron

    Well, I suspect CS4 will address the issue. CS3 is fine with OS10.4.11, but the extension thing pops up under OS10.5. I think it's just a matter of what came first the chicken or the egg.

  • Showing all News items in webpart

    HI,
    I am trying to create a webpart which shows all the news items with the News title and date followed by a paging.
    Currently, I have the below in publishing site:
    1) Subsite for storing news
    2) Page layout which has a category as "News", On Adding page layout, I am providing a Title, description followed by CEWP.
    The users create the News pages by selecting the above way.
    I would like to show all the News so far created in a webpart with paging added to it.
    How to show all the News items in a webpart with pager functionality?
    Thanks

    Hi Venkatzeus,
    If you want to custom list view web part, and show the paging like 1 2 3…Last, I would suggest you to customize the XSLT of the view web part, the following sample contains steps to do this:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/ec69f84c-c7de-4322-8395-dcbeb8b89958/customize-paging-for-an-xslt-listview-web-part?forum=sharepointgeneralprevious
    If you want to use programming that customize a web part, it is similar with .NET project, just first retrieve the list items, then generate it in your expected control, like gridview, then adding paging method to it, more information,
    Paging data retrieved from SharePoint list using PagedDataSource object:
    http://waelmohamed.wordpress.com/2010/04/06/paging-data-retrieved-from-sharepoint-list-using-pageddatasource-object/
    How to implement paging and sorting in asp.net GridView control:
    http://www.dotnetgallery.com/kb/resource12-How-to-implement-paging-and-sorting-in-aspnet-Gridview-control.aspx.aspx
    Thanks,
    Qiao Wei
    TechNet Community Support

Maybe you are looking for