All Projects → chartbeat-labs → jChartbeat

chartbeat-labs / jChartbeat

Licence: Apache-2.0 license
A simple and lightweight jQuery plugin for the Chartbeat API

Programming Languages

javascript
184084 projects - #8 most used programming language

jChartbeat

A simple and lightweight jQuery plugin for the Chartbeat API. The compiled version is less than 2k in size (500 bytes gzipped).

Usage

You can get set up with jChartbeat in 3 easy steps:

  1. Source jQuery and jChartbeat

     <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
     <script src="https://github.com/path/to/jquery.jChartbeat.compiled.js"></script>
    
  2. Initialize jChartbeat with your API Key and Domain

     <script type="text/javascript">
     $(document).ready(function() {
         $.jChartbeat({apikey: 'YOUR_API_KEY', host: 'YOUR_DOMAIN'});
     });
     </script>
    
  3. Start calling the chartbeat API!

     <script type="text/javascript">
     $(document).ready(function() {
         $.jChartbeat({apikey: 'YOUR_API_KEY', host: 'YOUR_DOMAIN'});
         // A call to chartbeat's Top Pages API. The response is returned in a callback.
         $.jChartbeat.toppages(function(response) {
             // Do stuff with the response object
             console.log(response);
         });
     });
     </script>
    

Issues

You can report a bug or request a feature here

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].