Comments (7)
I'm fairly certain Google Charts allows that, I don't think I implemented that in the datatable configuration yet. I will add it to my list of to-dos for V2 (close to completion)
from lavacharts.
Thanks, I was really happy when I found LavaCharts and I'm looking forward for V2,
from lavacharts.
Thank you kindly internet stranger :) I've been researching Google's method
of formatting dates and working on an implementation
On Aug 15, 2014 11:06 AM, "Leandro Vian" [email protected] wrote:
Thanks, I was really happy when I found LavaCharts and I'm looking forward
for V2,—
Reply to this email directly or view it on GitHub
#7 (comment).
from lavacharts.
Actually, you should already be able to format the dates of the horizontal axis. (I forgot)
Create an array to configure the chart. Then using an hAxis object, Such as
$config = array(
'hAxis' => Lava::hAxis(array(
'format' => 'YY/MM/DD'
))
);
Then pass this array into the setConfig method of the chart.
from lavacharts.
Thanks Kevin, worked great.
Managed to achieve the format I wanted with your code and a quick check at http://icu-project.org/apiref/icu4c/classSimpleDateFormat.html#_details
$config = array(
'hAxis' => Lava::hAxis(array(
'format' => 'd/MM/yyyy'
))
);
from lavacharts.
By the way, is it possible to do something similar with the dates displayed inside the tooltips?
Broke my head for a while trying to find a way, most answers I found were related with the use of dateFormat but I failled to realize where I should put it inside lavacharts code in order to test :)
from lavacharts.
If you take a peek at the v2.0 branch, or the releases section on Github, I
actually just finished implementing dateFormat and numberFormat :) I also
have a rudimentary implementation of chart events in the works.
The v2.0 branch is stable, I think I have the new API nailed down, (don't
use it in production obviously) but you can play with it if you want
On Aug 18, 2014 4:52 PM, "Leandro Vian" [email protected] wrote:
By the way, is it possible to do something similar with the dates
displayed inside the tooltips?
Broke my head for a while trying to find a way, most answers I found were
related with the use of dateFormat but I failled to realize where I should
put it inside lavacharts code in order to test :)—
Reply to this email directly or view it on GitHub
#7 (comment).
from lavacharts.
Related Issues (20)
- Cannot read property isHtml of null, Unspecified chart type HOT 9
- lavacharts.com is down HOT 15
- Chart to wkhtmltopdf not working HOT 4
- Piecharts have stopped working HOT 1
- Google Charts version "current" is breaking things HOT 4
- Use of <script type="text/javascript"> not right according to validator.w3.org HOT 1
- Trendlines with ColumnChart doesn't work. HOT 3
- How to use addTimeOfDayColumn method? HOT 2
- Khill\Lavacharts\Exceptions\InvalidStringValue: Invalid argument, must be a non-empty string
- while installing on ide-helper:generate an error occurs HOT 1
- Refused to load the script 'https://www.gstatic.com/charts/loader.js' because it violates the following Content Security Policy HOT 1
- Adding data descriptions on the X axis HOT 1
- OrgChart is included but not enabled. Why? HOT 1
- Cannot read property 'style' of null× HOT 3
- Dashboard / ChartWrapper missing functionality HOT 1
- Call to undefined method Khill\Lavacharts\DataTables\DataTable::DataTabe()
- OrgChart.php references trait "PngOutputTrait" instead of "PngRenderableTrait"
- Event is not defined
- Undefined type "Lava" error
- is this chart package still compatible with Laravel version 10? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lavacharts.