michelson/lazy_high_charts

Undocumented api change

Closed this issue · 1 comments

There is an undocumented API change (at least looking at the changelog) between 1.2.2 and 1.3. Previously we were setting the pointStart value to the Javascript below, however since 1.3 it is expected to be a Ruby date.

For the benefit of others with this issue: This is what we had before (we've been using high charts for a while), however now we can just return start_date:

def point_start
    "Date.UTC(#{start_date.year}, #{start_date.month - 1}, #{start_date.day})".js_code
end

yes, many api have not document, So i create a demo site for your reference, please have a look. see wiki page.