Git Product home page Git Product logo

glanceyear's Introduction

glanceyear

JQuery data visualization / Glance Year

Need JQuery

Check live demo

alt tag

Version 0.4.1 (2014.03.27)
  • Added version tag in script file.
Version 0.4 (2014.11.26)
  • New parameter "today";
  • Fix bug with first month.
Version 0.3
  • Every instance fill your own data;
  • New parameter "showToday";
  • Fix bug with 54 weeks;
  • Added minified script.
Version 0.2
  • rebuild mouseover and mouseleave event and now work faster;
  • new event 'eventClick'.

How to Use

var massive = [
	{date: '2014-8-3', value:'1'},
	{date: '2014-8-4', value:'2'},
	{date: '2014-9-3', value:'3'},
	{date: '2014-10-14', value:'2'},
	{date: '2014-10-13', value:'8'},
	{date: '2014-7-3', value:'1'},
	{date: '2014-7-4', value:'2'},
	{date: '2014-7-7', value:'3'},
	{date: '2014-7-14', value:'2'},
	{date: '2014-6-3', value:'1'},
	{date: '2014-6-4', value:'2'},
	{date: '2014-6-5', value:'3'},
	{date: '2014-6-14', value:'2'}
];
Simple initialization plugin
$('div#js-glanceyear').glanceyear(massive);
Initialization the plugin with additional parameters
$('div#js-glanceyear').glanceyear(massive,
	{
		eventClick: function(e) { $('#debug').html('Date: '+ e.date + ', Count: ' + e.count); },
		months: ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],
		weeks: ['M','T','W','T','F','S', 'S'],
		showToday: false,
		today: new Date()
	});
  • eventClick - Event, after click on day [Function];
  • month - name of month [Array with string];
  • weeks - name of weeks [Array with string];
  • showToday - display present day or not [Boolean];
  • today - change current date [Date].

glanceyear's People

Contributors

kraigo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.