I have a list of data {{date,real},{date,real},...,{date,real}}
and I want to use the Manipulate
function on the data.
How do I put the data in a form that Manipulate
will work on it?
I have a list of data {{date,real},{date,real},...,{date,real}}
and I want to use the Manipulate
function on the data.
How do I put the data in a form that Manipulate
will work on it?
data = FinancialData["IBM", "Jan. 1, 2014"];
Manipulate[
Block[
{x = DatePlus[data[[1, 1]], t]},
DateListPlot[
data
, Epilog -> Line[
{
{x, Min@data[[All, 2]]}
, {x, Max@data[[All, 2]]}
}]
]
],
{t, 0, QuantityMagnitude@
DateDifference[First@First@data, First@Last@data]}]