README.md edited
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
(function ($) {
|
||||
$.fn.extend( {
|
||||
googleAnalyticsChart: function() {
|
||||
var $chart = $(this);
|
||||
var ctx = $chart.get(0).getContext("2d");
|
||||
var $data = $chart.find('.chart-data');
|
||||
var $dataItems = $data.find('.chart-data-item');
|
||||
var labels = [];
|
||||
var data = [];
|
||||
|
||||
$dataItems.each(function() {
|
||||
labels.push($(this).data('date'));
|
||||
data.push($(this).data('value'));
|
||||
});
|
||||
|
||||
var chart = new Chart(ctx).Line({
|
||||
labels: labels,
|
||||
datasets: [
|
||||
{
|
||||
fillColor: $chart.find('.chart-fillColor').css('color'),
|
||||
strokeColor: $chart.find('.chart-strokeColor').css('color'),
|
||||
pointColor: $chart.find('.chart-pointColor').css('color'),
|
||||
pointHighlightFill: $chart.find('.chart-pointHighlightFill').css('color'),
|
||||
responsive: true,
|
||||
data: data
|
||||
}
|
||||
]
|
||||
}, {
|
||||
scaleGridLineColor: $chart.find('.chart-scaleGridLineColor').css('color'),
|
||||
scaleLineColor: $chart.find('.chart-scaleLineColor').css('color'),
|
||||
scaleFontColor: $chart.find('.chart-scaleFontColor').css('color')
|
||||
});
|
||||
|
||||
var updateChartColors = function(chart) {
|
||||
for (var i = 0; i < chart.datasets.length; ++i) {
|
||||
chart.datasets[i]['fillColor'] = $chart.find('.chart-fillColor').css('color');
|
||||
chart.datasets[i]['strokeColor'] = $chart.find('.chart-strokeColor').css('color');
|
||||
chart.datasets[i]['pointColor'] = $chart.find('.chart-pointColor').css('color');
|
||||
chart.datasets[i]['pointHighlightFill'] = $chart.find('.chart-pointHighlightFill').css('color');
|
||||
}
|
||||
|
||||
chart.scale['gridLineColor'] = $chart.find('.chart-scaleGridLineColor').css('color');
|
||||
chart.scale['lineColor'] = $chart.find('.chart-scaleLineColor').css('color');
|
||||
chart.scale['textColor'] = $chart.find('.chart-scaleFontColor').css('color');
|
||||
|
||||
chart.update();
|
||||
};
|
||||
|
||||
$(document).on('theme:changed', function() {
|
||||
updateChartColors(chart);
|
||||
});
|
||||
}
|
||||
});
|
||||
})(jet.jQuery);
|
||||
@@ -0,0 +1,54 @@
|
||||
(function ($) {
|
||||
$.fn.extend( {
|
||||
yandexMetrikaChart: function() {
|
||||
var $chart = $(this);
|
||||
var ctx = $chart.get(0).getContext("2d");
|
||||
var $data = $chart.find('.chart-data');
|
||||
var $dataItems = $data.find('.chart-data-item');
|
||||
var labels = [];
|
||||
var data = [];
|
||||
|
||||
$dataItems.each(function() {
|
||||
labels.push($(this).data('date'));
|
||||
data.push($(this).data('value'));
|
||||
});
|
||||
|
||||
var chart = new Chart(ctx).Line({
|
||||
labels: labels,
|
||||
datasets: [
|
||||
{
|
||||
fillColor: $chart.find('.chart-fillColor').css('color'),
|
||||
strokeColor: $chart.find('.chart-strokeColor').css('color'),
|
||||
pointColor: $chart.find('.chart-pointColor').css('color'),
|
||||
pointHighlightFill: $chart.find('.chart-pointHighlightFill').css('color'),
|
||||
responsive: true,
|
||||
data: data
|
||||
}
|
||||
]
|
||||
}, {
|
||||
scaleGridLineColor: $chart.find('.chart-scaleGridLineColor').css('color'),
|
||||
scaleLineColor: $chart.find('.chart-scaleLineColor').css('color'),
|
||||
scaleFontColor: $chart.find('.chart-scaleFontColor').css('color')
|
||||
});
|
||||
|
||||
var updateChartColors = function(chart) {
|
||||
for (var i = 0; i < chart.datasets.length; ++i) {
|
||||
chart.datasets[i]['fillColor'] = $chart.find('.chart-fillColor').css('color');
|
||||
chart.datasets[i]['strokeColor'] = $chart.find('.chart-strokeColor').css('color');
|
||||
chart.datasets[i]['pointColor'] = $chart.find('.chart-pointColor').css('color');
|
||||
chart.datasets[i]['pointHighlightFill'] = $chart.find('.chart-pointHighlightFill').css('color');
|
||||
}
|
||||
|
||||
chart.scale['gridLineColor'] = $chart.find('.chart-scaleGridLineColor').css('color');
|
||||
chart.scale['lineColor'] = $chart.find('.chart-scaleLineColor').css('color');
|
||||
chart.scale['textColor'] = $chart.find('.chart-scaleFontColor').css('color');
|
||||
|
||||
chart.update();
|
||||
};
|
||||
|
||||
$(document).on('theme:changed', function() {
|
||||
updateChartColors(chart);
|
||||
});
|
||||
}
|
||||
});
|
||||
})(jet.jQuery);
|
||||
55
.venv/lib/python3.10/site-packages/jet/dashboard/static/jet.dashboard/vendor/chart.js/CONTRIBUTING.md
vendored
Executable file
55
.venv/lib/python3.10/site-packages/jet/dashboard/static/jet.dashboard/vendor/chart.js/CONTRIBUTING.md
vendored
Executable file
@@ -0,0 +1,55 @@
|
||||
Contributing to Chart.js
|
||||
========================
|
||||
|
||||
Contributions to Chart.js are welcome and encouraged, but please have a look through the guidelines in this document before raising an issue, or writing code for the project.
|
||||
|
||||
|
||||
Using issues
|
||||
------------
|
||||
|
||||
The [issue tracker](https://github.com/nnnick/Chart.js/issues) is the preferred channel for reporting bugs, requesting new features and submitting pull requests.
|
||||
|
||||
If you're suggesting a new chart type, please take a look at [writing new chart types](https://github.com/nnnick/Chart.js/blob/master/docs/06-Advanced.md#writing-new-chart-types) in the documentation, and some of the [community extensions](https://github.com/nnnick/Chart.js/blob/master/docs/06-Advanced.md#community-extensions) that have been created already.
|
||||
|
||||
To keep the library lightweight for everyone, it's unlikely we'll add many more chart types to the core of Chart.js, but issues are a good medium to design and spec out how new chart types could work and look.
|
||||
|
||||
Please do not use issues for support requests. For help using Chart.js, please take a look at the [`chartjs`](http://stackoverflow.com/questions/tagged/chartjs) tag on Stack Overflow.
|
||||
|
||||
|
||||
Reporting bugs
|
||||
--------------
|
||||
|
||||
Well structured, detailed bug reports are hugely valuable for the project.
|
||||
|
||||
Guidlines for reporting bugs:
|
||||
|
||||
- Check the issue search to see if it has already been reported
|
||||
- Isolate the problem to a simple test case
|
||||
- Provide a demonstration of the problem on [JS Bin](http://jsbin.com) or similar
|
||||
|
||||
Please provide any additional details associated with the bug, if it's browser or screen density specific, or only happens with a certain configuration or data.
|
||||
|
||||
|
||||
Pull requests
|
||||
-------------
|
||||
|
||||
Clear, concise pull requests are excellent at continuing the project's community driven growth. But please review [these guidelines](https://github.com/blog/1943-how-to-write-the-perfect-pull-request) and the guidelines below before starting work on the project.
|
||||
|
||||
Guidlines:
|
||||
|
||||
- Please create an issue first:
|
||||
- For bugs, we can discuss the fixing approach
|
||||
- For enhancements, we can discuss if it is within the project scope and avoid duplicate effort
|
||||
- Please make changes to the files in [`/src`](https://github.com/nnnick/Chart.js/tree/master/src), not `Chart.js` or `Chart.min.js` in the repo root directory, this avoids merge conflicts
|
||||
- Tabs for indentation, not spaces please
|
||||
- If adding new functionality, please also update the relevant `.md` file in [`/docs`](https://github.com/nnnick/Chart.js/tree/master/docs)
|
||||
- Please make your commits in logical sections with clear commit messages
|
||||
|
||||
Joining the Project
|
||||
-------------
|
||||
- Active committers and contributors are invited to introduce yourself and request commit access to this project. Please send an email to hello@nickdownie.com or file an issue.
|
||||
|
||||
License
|
||||
-------
|
||||
|
||||
By contributing your code, you agree to license your contribution under the [MIT license](https://github.com/nnnick/Chart.js/blob/master/LICENSE.md).
|
||||
3477
.venv/lib/python3.10/site-packages/jet/dashboard/static/jet.dashboard/vendor/chart.js/Chart.js
vendored
Executable file
3477
.venv/lib/python3.10/site-packages/jet/dashboard/static/jet.dashboard/vendor/chart.js/Chart.js
vendored
Executable file
File diff suppressed because it is too large
Load Diff
11
.venv/lib/python3.10/site-packages/jet/dashboard/static/jet.dashboard/vendor/chart.js/Chart.min.js
vendored
Executable file
11
.venv/lib/python3.10/site-packages/jet/dashboard/static/jet.dashboard/vendor/chart.js/Chart.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
7
.venv/lib/python3.10/site-packages/jet/dashboard/static/jet.dashboard/vendor/chart.js/LICENSE.md
vendored
Executable file
7
.venv/lib/python3.10/site-packages/jet/dashboard/static/jet.dashboard/vendor/chart.js/LICENSE.md
vendored
Executable file
@@ -0,0 +1,7 @@
|
||||
Copyright (c) 2013-2015 Nick Downie
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
20
.venv/lib/python3.10/site-packages/jet/dashboard/static/jet.dashboard/vendor/chart.js/README.md
vendored
Executable file
20
.venv/lib/python3.10/site-packages/jet/dashboard/static/jet.dashboard/vendor/chart.js/README.md
vendored
Executable file
@@ -0,0 +1,20 @@
|
||||
# Chart.js
|
||||
|
||||
[](https://travis-ci.org/nnnick/Chart.js) [](https://codeclimate.com/github/nnnick/Chart.js)
|
||||
|
||||
|
||||
*Simple HTML5 Charts using the canvas element* [chartjs.org](http://www.chartjs.org)
|
||||
|
||||
## Documentation
|
||||
|
||||
You can find documentation at [chartjs.org/docs](http://www.chartjs.org/docs/). The markdown files that build the site are available under `/docs`. Please note - in some of the json examples of configuration you might notice some liquid tags - this is just for the generating the site html, please disregard.
|
||||
|
||||
## Bugs, issues and contributing
|
||||
|
||||
Before submitting an issue or a pull request to the project, please take a moment to look over the [contributing guidelines](https://github.com/nnnick/Chart.js/blob/master/CONTRIBUTING.md) first.
|
||||
|
||||
For support using Chart.js, please post questions with the [`chartjs` tag on Stack Overflow](http://stackoverflow.com/questions/tagged/chartjs).
|
||||
|
||||
## License
|
||||
|
||||
Chart.js is available under the [MIT license](http://opensource.org/licenses/MIT).
|
||||
Reference in New Issue
Block a user