I have 3 line charts created using Chartkick and for some reason 2 render correctly but on one chart the dates along the horizontal axis render in the reverse order after I push up to Heroku. They render fine locally for all three charts. I have a presentation on this project today (of course) and I would love to get to the bottom of this before I show it to people at 5. the code I have is as follows:
here is a gist of the markup for the broken chart
here is a link to the production site with the broken chart
Broken Chart:
<%= line_chart(
product.price_log_hash(9),
{
height: "185px", discrete: true, library:
{
chartArea:
{
top: 15, left: 35, width: '80%'
}, vAxis:
{
format: '$#,###'
},
hAxis:
{
slantedText: true, slantedTextAngle: 90
}
}
}
)%>
Working chart:
<%= line_chart(product.product.price_log_hash,
{
height: "150px", discrete: true, library:
{
chartArea:
{
top: 15, left: 35, width: '90%'
}, vAxis:
{
format: '$#,###'
},
hAxis:
{
slantedText: true, slantedTextAngle: 90
}
}
}) %>