score:0
Accepted answer
You should get the date from your input fields by accessing:
document.getElementById('from').value;
EDIT: A better way would be to use the jQuery datepicker events:
$('.selector').datepicker({
onSelect: function(dateText, inst) { ... }
});
and try to get the date as a javascript date object.
To set the range of the charts axis you can use:
chart.xAxis[0].setExtremes(Date.UTC(startYear, startMonth - 1, startDay), Date.UTC(endYear, endMonth - 1, endDay));
In your submit function. The chart will automatically redraw after the axis extremes are set.
Source: stackoverflow.com
Related Query
- pass form inputs to highcharts then rebuild chart
- Highcharts / jQuery - destroy and rebuild chart with original options
- Ajax and Highcharts - Display 'loading' until data is retrieved, then populate chart
- To pass dynamic json array to Highcharts Pie Chart
- HighCharts Stock Chart error code 18
- Pass Ajax data in highcharts Combination chart
- How to hardcode chart data in my Model then have my Controller pull it from there to display it. Using Highcharts
- Pass data to click event callback in Highstock chart with more then 1000 entries
- Highcharts display label for pie chart using html table as data source
- Highcharts polar wind rose chart with segments in trapezoid form
- How to pass JSON data to update Highcharts Pie chart
- Highcharts how to pass data from server into chart
- Pass time values to Highcharts Column chart
- Highcharts cloud issue with data source when duplicating chart
- Parsing CSV and then Using the Data to Build Highcharts Bar Chart
- Json in perfect form but Highcharts chart won't populate
- Highcharts (highcharts-ng) with ng-repeat worked, But need to pass the data for each chart from the attributes
- How to create a column range chart in Highcharts using range and navigator functions?
- How can I get access to a Highcharts chart through a DOM-Container?
- Highcharts chart option backgroundColor:'transparent' showing black on IE 8
- How to set Highcharts chart maximum yAxis value
- HighCharts turn animation false for line chart
- Programmatically change a chart title in highcharts
- Reload chart data via JSON with Highcharts
- How to display the value instead of percentage in a pie chart using jquery Highcharts
- Highcharts donut chart without inner pie?
- Highcharts - how to have a chart with dynamic height?
- Highcharts - issue about full chart width
- HighCharts - Make the pie chart 100% of the div
- Place text in center of pie chart - Highcharts
More Query from same tag
- Ajax dynamic data with column bar chart
- Bar chart creating gap in timeline
- DataLabels in R highcharter cannot be seen after print as png or jpg
- Make stack label disabled for a column in stacked column graph in Highcharts
- How do I make npm pack "highcharts-export-server" wait for it to finish processing
- Highcharts-ng with drilldown
- Highcharts Pie Donut: Error when clicking URL
- Hide the zero values in a Scatter/Column chart in highcharts
- Iterating through JSON structure matching criteria
- How to dynamically change mouse event functions in Highchart?
- How to handle HighCharts zooming with large data sets
- How to select the drillup button using jquery, so I can do an on click event?
- Highcharts: Change hover style in line chart when hovering over legend
- How to do a if else statement for highcharts in laravel
- Highcharts set xAxis values starting 12am and ends in 11pm
- Show only discontinuous points in Highcharts line graph
- Only one function in highcharts will function
- Highcharts - Columns Showing Negative When Data is Zero
- yii2 : dynamic dosamigos HighCharts from database
- Attach arbitrary data to Highcharts data points
- color doesn't match in scatter plot
- Highcharts slow performance when adding more than 10 series
- Highcharts: displaying data sets from one series
- HighCharts - Horizontal line with the zoomed average of the values
- Highcharts CSV export, incorrect date
- How to feed two values to y axis at a time corresponds to single x axis value in Highchart
- High charts Tool tip is not supporting in IE10 and IE8 and Mozilla with more data
- Highcharts - Multiple master charts in master detail charts
- Use CSS Class in HighCharts
- Highcharts 7.0.3 with Xpages/dojo