Tagged: ja_resume timeline chart yoga
-
AuthorPosts
-
September 8, 2016 at 7:31 am #966650
Hello,
If you click on the demo site on the _more link and then choose ‘home yoga’.
There is a Timeline chart, can someone please tell me how this is done?
In the documentation I don’t find anything about it…Thanks in advance
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
September 9, 2016 at 2:01 am #966893Hi Ivanwiem,
Do you mean the timeline in ‘Teaching Experience’ section? http://prntscr.com/cfuodl
It’s JA ACM – Advanced Custom HTML module with type of Timeline. Below is backend settings of this module in our demo site:
Module: http://nimb.ws/U6kOgB
Module class suffix: title-style-1 grid-custom (remember to add a space before class suffix name)Let us know if you need any further help.
September 9, 2016 at 7:01 am #966921No I mean the Join my classes timeline
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
September 9, 2016 at 7:29 am #966923It’s a custom HTML module including script for google chart. You can create this module with this way:
- Backend > System > Global Configuration > Set Defautl editor to None.
- Backend > Extensions > Modules > Create a new custom HTML module > Add below script:
<h3 class="title-style-1"><span class="acm-title">Join My Classes</span></h3> <script type="text/javascript" src="<a href="https://www.gstatic.com/charts/loader.js"></script>">https://www.gstatic.com/charts/loader.js"></script></a>;</li> </ul> <p><script type="text/javascript"> google.charts.load("current", {packages:["timeline"]}); google.charts.setOnLoadCallback(drawChart); function drawChart() { var container = document.getElementById('exampleChart'); var chart = new google.visualization.Timeline(container); var dataTable = new google.visualization.DataTable(); dataTable.addColumn({ type: 'string', id: 'Day' }); dataTable.addColumn({ type: 'string', id: 'Name' }); dataTable.addColumn({ type: 'date', id: 'Start' }); dataTable.addColumn({ type: 'date', id: 'End' }); dataTable.addRows([ [ 'Sunday', 'Sunrise Yoga', new Date(0,0,0,12,0,0), new Date(0,0,0,14,0,0) ], [ 'Sunday', 'Vinyasa Flow', new Date(0,0,0,14,30,0), new Date(0,0,0,16,0,0) ], [ 'Sunday', 'Restorative Yoga', new Date(0,0,0,16,30,0), new Date(0,0,0,19,0,0) ], [ 'Monday', 'Open Yoga', new Date(0,0,0,12,30,0), new Date(0,0,0,14,0,0) ], [ 'Monday', 'yoga @ Noon', new Date(0,0,0,14,30,0), new Date(0,0,0,16,0,0) ], [ 'Monday', 'Gentle Yoga', new Date(0,0,0,16,30,0), new Date(0,0,0,18,0,0) ], [ 'Wednesday', 'Open Yoga', new Date(0,0,0,12,30,0), new Date(0,0,0,14,0,0) ], [ 'Wednesday', 'yoga @ Noon', new Date(0,0,0,14,30,0), new Date(0,0,0,16,0,0) ], [ 'Wednesday', 'Gentle Yoga', new Date(0,0,0,16,30,0), new Date(0,0,0,18,0,0) ], [ 'Thursday', 'Open Yoga', new Date(0,0,0,12,30,0), new Date(0,0,0,14,0,0) ], [ 'Thursday', 'yoga @ Noon', new Date(0,0,0,14,30,0), new Date(0,0,0,16,0,0) ], [ 'Thursday', 'Gentle Yoga', new Date(0,0,0,16,30,0), new Date(0,0,0,18,0,0) ], [ 'Friday', 'Open Yoga', new Date(0,0,0,12,30,0), new Date(0,0,0,14,0,0) ], [ 'Friday', 'yoga @ Noon', new Date(0,0,0,14,30,0), new Date(0,0,0,16,0,0) ], [ 'Friday', 'Gentle Yoga', new Date(0,0,0,16,30,0), new Date(0,0,0,18,0,0) ], [ 'Saturday', 'Advanced Yoga', new Date(0,0,0,12,30,0), new Date(0,0,0,14,0,0) ], [ 'Saturday', 'Pre-Natal Yoga', new Date(0,0,0,14,30,0), new Date(0,0,0,16,0,0) ], [ 'Saturday', 'Sunset Yoga', new Date(0,0,0,16,30,0), new Date(0,0,0,18,30,0) ]]);</p> <pre><code>var options = { backgroundColor: '#222', tooltip: { textStyle: { fontName: 'Work Sans', fontSize: 14 } }, timeline: { colorByRowLabel: true }, timeline: { rowLabelStyle: {fontName: 'Work Sans', fontSize: 14, color: '#fff' }, barLabelStyle: { fontName: 'Work Sans', fontSize: 14 } } }; chart.draw(dataTable, options);</code></pre> <p>} </script> <style type='text/css'></p> <h1>exampleChart text[fill="#000000"][text-anchor="middle"],</h1> <h1>exampleChart text[fill="#000000"][text-anchor="end"]{</h1> <pre><code>fill: #999!important;</code></pre> <p>}</p> <h1>exampleChart text[fill="#000000"][text-anchor="start"]{</h1> <pre><code>fill: #fff!important;</code></pre> <p>}</p> <h1>exampleChart path[stroke="#b7b7b7"],</h1> <h1>exampleChart rect[x="0"][stroke="#9a9a9a"]{</h1> <p>display: none; }</p> <h1>exampleChart [stroke-width="3"] {</h1> <pre><code>stroke: rgba(255, 255, 255, 0.6); stroke-width: 1;</code></pre> <p>}</p> <p></style> <div id="exampleChart" style="height: 360px;"></div></p> <p>
1 user says Thank You to Saguaros for this useful post
September 9, 2016 at 7:44 am #966931If I try this it works, thx but a small question the x-axis labels are black and in the demo site the are gray.
I have seen that it use a stylesheet for that but where do I have add this?Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
September 9, 2016 at 7:55 am #966934Which labels are you referring to? You can send screenshot highlighting it so I will have a look.
September 9, 2016 at 8:20 am #966941Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
September 12, 2016 at 1:45 am #967468You can provide the URL and admin login info of your site, I will check it for you. http://static.joomlart.com/images/blog/2015/nov/Add-new-post.gif
September 12, 2016 at 7:14 am #967537Is solved, the stylesheet was not good embedded .
Thanks for everything.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
September 12, 2016 at 7:19 am #967540Glad to here it’s solved now!
AuthorPostsViewing 10 posts - 1 through 10 (of 10 total)This topic contains 9 replies, has 2 voices, and was last updated by Saguaros 8 years, 2 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum