Note that there are some explanatory texts on larger screens.

plurals
  1. POundefined is not a function - error in Javascript
    primarykey
    data
    text
    <pre><code>timechart = new google.visualization.Dashboard(document.getElementById('timechart')); </code></pre> <p>I get the <code>undefined is not a function on this line</code>. I have other charts initialized on the same page and they work fine. For reference, the rest of my relevant code:</p> <pre><code>var timechartGraph = new google.visualization.ChartWrapper({ 'chartType': 'LineChart', 'containerId': 'timechart-graph', 'options': { // Use the same chart area width as the control for axis alignment. 'legend': {'position': 'right'} }, // Convert the first column from 'date' to 'string'. 'view': { 'columns': [ { 'calc': function(dataTable, rowIndex) { return dataTable.getFormattedValue(rowIndex, 11); }, 'type': 'string' },1, 2, 3, 4, 5, 6, 7, 8, 9, 10] } }); var timechartRangeSlider = new google.visualization.ControlWrapper({ 'controlType': 'ChartRangeFilter', 'containerId': 'timechart-range-slider', 'options': { // Filter by the date axis. 'filterColumnIndex': 11, 'ui': { 'chartType': 'LineChart', 'chartOptions': { 'hAxis': {'baselineColor': 'none'} }, // Display a single series that shows the closing value of the stock. // Thus, this view has two columns: the date (axis) and the stock value (line series). 'chartView': { 'columns': [11, 12] }, // 1 day in milliseconds = 24 * 60 * 60 * 1000 = 86,400,000 //'minRangeSize': 86400000 } }, // Initial range: 2012-02-09 to 2012-03-20. //'state': {'range': {'start': new Date(2012, 1, 9), 'end': new Date(2012, 2, 20)}} }); timechartData = new google.visualization.DataTable(); timechart = new google.visualization.Dashboard(document.getElementById('timechart')); timechart.bind(timechartRangeSlider, timechartGraph); </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload