In your CategoryFilters, you can set a default selection by setting the 
state.selectedValues parameter:

var statePicker = new google.visualization.ControlWrapper({
    'controlType': 'CategoryFilter',
    'containerId': 'control1',
    'options': {
        'filterColumnLabel': 'State',
        'ui': {
            'labelStacking': 'vertical',
            'allowTyping': false,
            'allowMultiple': false
        }
    },
    state: {
        selectedValues: [/* array of values to have selected by default */]
    }
});


On Friday, November 15, 2013 10:16:02 PM UTC-5, mani wrote:
>
> pls let me know what option to set for a default value display. 
>
> On 11/15/13, asgallant <[email protected] <javascript:>> wrote: 
> > How large is the data set (number of rows)?  If your data set is large 
> > enough, then the pie chart will almost certainly end up with either a 
> large 
> > 
> > portion grouped into the "Other" slice (comprised of the slices smaller 
> > than 1/720th of the total by default) or a large number of tiny slices, 
> > making the chart an illegible mess.  I suggest implementing default 
> > selections on your filters to cut down on the size of the data set 
> > displayed. 
> > 
> > On Thursday, November 14, 2013 11:37:43 PM UTC-5, mani wrote: 
> >> 
> >> thanks drew, 
> >> i tried your suggestion ,alert message pops up before stop script 
> warning 
> >> 
> >> pop up,so it means i have problem processing the data. 
> >> how can i improve data processing?? 
> >> 
> >> On Thursday, 14 November 2013 16:13:48 UTC+5:30, mani wrote: 
> >>> 
> >>> When i am trying to load google chart with large data set it works 
> fine 
> >>> with Chrome and Firefox,but "Stop Running the Script?" in IE all 
> versions 
> >>> . 
> >>> Below is the code,eventhough i am generating data at server still code 
> >>> doesnt wrk,how can i improve the performance.How can i display data in 
> >>> chunks?? 
> >>> Please point me to the code where i can do this 
> >>> Thanks 
> >>> 
> >>> 
> >>>     <script type="text/javascript"> 
> >>> 
> >>>             // Prepare the data 
> >>> 
> >>>     function drawVisualization() { 
> >>>     var json = $.ajax({ 
> >>>     url: 'state_dist_book_chartdata.php', // make this url point to 
> the 
> >>> data file 
> >>>     dataType: 'json', 
> >>>     async: false 
> >>>     }).responseText; 
> >>> 
> >>> 
> >>> 
> >>>     var data = new google.visualization.DataTable(json); 
> >>> 
> >>>             // Define category pickers for 'Country', 'Region/State' 
> and 
> >>> 
> >>> 'City' 
> >>>             var statePicker = new 
> google.visualization.ControlWrapper({ 
> >>>               'controlType': 'CategoryFilter', 
> >>>               'containerId': 'control1', 
> >>>               'options': { 
> >>>                 'filterColumnLabel': 'State', 
> >>>                 'ui': { 
> >>>                   'labelStacking': 'vertical', 
> >>>                   'allowTyping': false, 
> >>>                   'allowMultiple': false 
> >>>                 } 
> >>>               } 
> >>>             }); 
> >>> 
> >>>             var cityPicker = new google.visualization.ControlWrapper({ 
> >>>               'controlType': 'CategoryFilter', 
> >>>               'containerId': 'control2', 
> >>>               'options': { 
> >>>                 'filterColumnLabel': 'District', 
> >>>                 'ui': { 
> >>>                   'labelStacking': 'vertical', 
> >>>                   'allowTyping': false, 
> >>>                   'allowMultiple': false 
> >>>                 } 
> >>>               } 
> >>>             }); 
> >>> 
> >>>             var bookPicker = new google.visualization.ControlWrapper({ 
> >>>               'controlType': 'CategoryFilter', 
> >>>               'containerId': 'control3', 
> >>>               'options': { 
> >>>                 'filterColumnLabel': 'Book', 
> >>>                 'ui': { 
> >>>                   'labelStacking': 'vertical', 
> >>>                   'allowTyping': false, 
> >>>                   'allowMultiple': false 
> >>>                 } 
> >>>               } 
> >>>             }); 
> >>> 
> >>>             // Define a bar chart to show 'Amount' data 
> >>>             var barChart = new google.visualization.ChartWrapper({ 
> >>>               'chartType': 'PieChart', 
> >>>               'containerId': 'chart1', 
> >>>               'options': { 
> >>>                 'width': 900, 
> >>>                 'height': 700, 
> >>>     is3D: 'true', 
> >>>                 'chartArea': {top: 0, right: 0, bottom: 0} 
> >>>               }, 
> >>> 
> >>>               'view': {'columns': [2, 3]} 
> >>>             }); 
> >>> 
> >>>             // Create the dashboard. 
> >>>             new 
> >>> google.visualization.Dashboard(document.getElementById('dashboard')). 
> >>> 
> >>>               bind(statePicker, cityPicker). 
> >>>       bind(cityPicker, barChart). 
> >>> 
> >>>               draw(data); 
> >>>           } 
> >>> 
> >> 
> > 
> > -- 
> > You received this message because you are subscribed to a topic in the 
> > Google Groups "Google Visualization API" group. 
> > To unsubscribe from this topic, visit 
> > 
> https://groups.google.com/d/topic/google-visualization-api/mVVAHqydgy4/unsubscribe.
>  
>
> > To unsubscribe from this group and all its topics, send an email to 
> > [email protected] <javascript:>. 
> > To post to this group, send email to 
> > [email protected] <javascript:>. 
> > Visit this group at 
> > http://groups.google.com/group/google-visualization-api. 
> > For more options, visit https://groups.google.com/groups/opt_out. 
> > 
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to