Add value label on bars in bar/hbar charts

This commit is contained in:
FrancescoUK
2016-11-15 18:41:17 +00:00
parent 9766dcfad3
commit 35e76bdd4d
6 changed files with 89 additions and 77 deletions

View File

@@ -54,6 +54,7 @@
<script src="bower_components/chartist-plugin-axistitle/dist/chartist-plugin-axistitle.min.js"></script>
<script src="bower_components/chartist-plugin-pointlabels/dist/chartist-plugin-pointlabels.min.js"></script>
<script src="bower_components/chartist-plugin-tooltip/dist/chartist-plugin-tooltip.min.js"></script>
<script src="bower_components/chartist-plugin-barlabels/dist/chartist-plugin-barlabels.min.js"></script>
<script src="bower_components/remarkable-bootstrap-notify/bootstrap-notify.js"></script>
<script src="bower_components/js-cookie/src/js.cookie.js"></script>
<script src="bower_components/blockUI/jquery.blockUI.js"></script>
@@ -73,7 +74,7 @@
<link rel="stylesheet" type="text/css" href="dist/style.css"/>
<!-- end mincss template tags -->
<!-- start minjs template tags -->
<script type="text/javascript" src="dist/opensourcepos.min.js?rel=09ce62b5f8"></script>
<script type="text/javascript" src="dist/opensourcepos.min.js?rel=c84a0bb15a"></script>
<!-- end minjs template tags -->
<?php endif; ?>

View File

@@ -87,6 +87,8 @@
}
}),
Chartist.plugins.ctBarLabels(),
Chartist.plugins.ctPointLabels({
textAnchor: 'middle'
})

View File

@@ -90,6 +90,8 @@
}
}),
Chartist.plugins.ctBarLabels(),
Chartist.plugins.ctPointLabels({
textAnchor: 'middle'
})

View File

@@ -40,6 +40,7 @@
"chartist-plugin-axistitle": "^0.1.0",
"chartist-plugin-pointlabels": "^0.0.4",
"chartist-plugin-tooltip": "^0.0.13",
"chartist-plugin-barlabels": "https://github.com/mtgibbs/chartist-plugin-barlabels.git#^0.0.5",
"remarkable-bootstrap-notify": "^3.1.3",
"js-cookie": "^2.1.3",
"blockUI": "*"

View File

File diff suppressed because one or more lines are too long

View File

@@ -1,7 +1,9 @@
{
"jquery-form@3.46.0": {
"licenses": "UNKNOWN",
"homepage": "https://github.com/malsup/form"
"chartist-plugin-tooltip@0.0.13": {
"licenses": [
"MIT*"
],
"homepage": "https://github.com/Globegitter/chartist-plugin-tooltip"
},
"bootswatch@3.3.7": {
"licenses": [
@@ -13,23 +15,11 @@
},
"homepage": "http://bootswatch.com"
},
"chartist-plugin-axistitle@0.1.0": {
"tableExport.jquery.plugin@1.5.1": {
"licenses": [
"WTF*"
"MIT"
],
"homepage": "https://github.com/alexstanbury/chartist-plugin-axistitle"
},
"chartist-plugin-tooltip@0.0.13": {
"licenses": [
"MIT*"
],
"homepage": "https://github.com/Globegitter/chartist-plugin-tooltip"
},
"file-saver.js@1.20150507.2": {
"licenses": [
"LICENSE.md"
],
"homepage": "https://github.com/Teleborder/FileSaver.js"
"homepage": "https://github.com/hhurz/tableExport.jquery.plugin"
},
"chartist-plugin-pointlabels@0.0.4": {
"licenses": [
@@ -37,17 +27,27 @@
],
"homepage": "https://github.com/gionkunz/chartist-plugin-pointlabels"
},
"bootstrap-select@1.11.2": {
"bootstrap3-dialog@1.35.3": {
"licenses": [
"MIT"
],
"homepage": "http://silviomoreto.github.io/bootstrap-select"
"homepage": "http://nakupanda.github.io/bootstrap3-dialog/"
},
"tableExport.jquery.plugin@1.5.1": {
"jquery-form@3.46.0": {
"licenses": "UNKNOWN",
"homepage": "https://github.com/malsup/form"
},
"file-saver.js@1.20150507.2": {
"licenses": [
"MIT"
"LICENSE.md"
],
"homepage": "https://github.com/hhurz/tableExport.jquery.plugin"
"homepage": "https://github.com/Teleborder/FileSaver.js"
},
"chartist-plugin-axistitle@0.1.0": {
"licenses": [
"WTF*"
],
"homepage": "https://github.com/alexstanbury/chartist-plugin-axistitle"
},
"jspdf@1.0.272": {
"licenses": [
@@ -55,23 +55,27 @@
],
"homepage": "https://github.com/mrrio/jspdf"
},
"bootstrap3-dialog@1.35.3": {
"licenses": [
"MIT"
],
"homepage": "http://nakupanda.github.io/bootstrap3-dialog/"
},
"moment@2.16.0": {
"licenses": [
"MIT"
],
"homepage": "https://github.com/moment/moment"
},
"blockUI@undefined": {
"chartist@0.9.8": {
"licenses": "UNKNOWN",
"homepage": "https://github.com/gionkunz/chartist-js"
},
"jquery@1.12.4": {
"licenses": [
"MIT*"
"MIT"
],
"homepage": "http://jquery.malsup.com/block/"
"homepage": "https://github.com/jquery/jquery-dist"
},
"bootstrap-select@1.11.2": {
"licenses": [
"MIT"
],
"homepage": "http://silviomoreto.github.io/bootstrap-select"
},
"js-cookie@2.1.3": {
"licenses": [
@@ -79,9 +83,26 @@
],
"homepage": "https://github.com/js-cookie/js-cookie"
},
"chartist@0.9.8": {
"licenses": "UNKNOWN",
"homepage": "https://github.com/gionkunz/chartist-js"
"blockUI@undefined": {
"licenses": [
"MIT*"
],
"homepage": "http://jquery.malsup.com/block/"
},
"smalot-bootstrap-datetimepicker@2.3.11": {
"licenses": [
"Apache 2.0",
"Apache*"
],
"homepage": "https://github.com/smalot/bootstrap-datetimepicker",
"repository": "https://github.com/smalot/bootstrap-datetimepicker"
},
"remarkable-bootstrap-notify@3.1.3": {
"licenses": [
"MIT"
],
"homepage": "http://bootstrap-notify.remabledesigns.com/",
"repository": "https://github.com/mouse0270/bootstrap-notify"
},
"jquery-validation@1.13.1": {
"licenses": [
@@ -105,14 +126,6 @@
"homepage": "https://github.com/jasny/bootstrap",
"repository": "git+https://github.com/jasny/bootstrap"
},
"smalot-bootstrap-datetimepicker@2.3.11": {
"licenses": [
"Apache 2.0",
"Apache*"
],
"homepage": "https://github.com/smalot/bootstrap-datetimepicker",
"repository": "https://github.com/smalot/bootstrap-datetimepicker"
},
"bootstrap-daterangepicker@2.1.24": {
"licenses": [
"MIT"
@@ -120,19 +133,6 @@
"homepage": "https://github.com/dangrossman/bootstrap-daterangepicker",
"repository": "git+https://github.com/dangrossman/bootstrap-daterangepicker"
},
"jquery@1.12.4": {
"licenses": [
"MIT"
],
"homepage": "https://github.com/jquery/jquery-dist"
},
"bootstrap-table@undefined": {
"licenses": [
"MIT"
],
"homepage": "https://github.com/wenzhixin/bootstrap-table",
"repository": "git+https://github.com/wenzhixin/bootstrap-table"
},
"jspdf-autotable@2.0.14": {
"licenses": [
"MIT"
@@ -140,12 +140,12 @@
"homepage": "https://github.com/simonbengtsson/jspdf-autotable",
"repository": "git+https://github.com/simonbengtsson/jsPDF-AutoTable"
},
"remarkable-bootstrap-notify@3.1.3": {
"bootstrap-table@undefined": {
"licenses": [
"MIT"
],
"homepage": "http://bootstrap-notify.remabledesigns.com/",
"repository": "https://github.com/mouse0270/bootstrap-notify"
"homepage": "https://github.com/wenzhixin/bootstrap-table",
"repository": "git+https://github.com/wenzhixin/bootstrap-table"
},
"bootstrap@3.3.7": {
"licenses": [
@@ -154,6 +154,12 @@
"homepage": "http://getbootstrap.com",
"repository": "git+https://github.com/twbs/bootstrap"
},
"chartist-plugin-barlabels@0.0.5": {
"licenses": [
"WTF*"
],
"homepage": "https://github.com/mtgibbs/chartist-plugin-barlabels"
},
"jquery-ui@1.11.4": {
"licenses": [
"MIT"