├── Dashboard ├── static │ ├── css │ │ ├── .Rhistory │ │ ├── LICENSE.md │ │ └── demo.css │ ├── img │ │ ├── favicon.ico │ │ ├── sidebar-2.jpg │ │ └── LICENSE.md │ ├── fonts │ │ ├── Pe-icon-7-stroke.eot │ │ ├── Pe-icon-7-stroke.ttf │ │ └── Pe-icon-7-stroke.woff │ ├── dist │ │ ├── export_renderers.min.js │ │ ├── LICENSE.md │ │ ├── d3_renderers.min.js │ │ ├── pivot.ru.min.js │ │ ├── pivot.da.min.js │ │ ├── pivot.min.css │ │ ├── pivot.es.min.js │ │ ├── pivot.de.min.js │ │ ├── pivot.it.min.js │ │ ├── pivot.nl.min.js │ │ ├── pivot.pl.min.js │ │ ├── pivot.fr.min.js │ │ ├── pivot.zh.min.js │ │ ├── pivot.tr.min.js │ │ ├── gchart_renderers.min.js │ │ ├── pivot.pt.min.js │ │ ├── export_renderers.js │ │ ├── pivot.da.js │ │ ├── pivot.css │ │ ├── pivot.ru.js │ │ ├── pivot.es.js │ │ ├── pivot.de.js │ │ ├── pivot.it.js │ │ ├── pivot.nl.js │ │ ├── pivot.pl.js │ │ ├── pivot.fr.js │ │ ├── d3_renderers.js │ │ ├── c3_renderers.min.js │ │ ├── pivot.tr.js │ │ ├── pivot.zh.js │ │ ├── export_renderers.js.map │ │ ├── pivot.pt.js │ │ ├── export_renderers.min.js.map │ │ ├── pivot.ru.js.map │ │ ├── pivot.da.js.map │ │ ├── pivot.it.js.map │ │ ├── pivot.de.js.map │ │ ├── pivot.es.js.map │ │ ├── pivot.nl.js.map │ │ ├── d3_renderers.js.map │ │ ├── pivot.pl.js.map │ │ ├── pivot.fr.js.map │ │ ├── d3_renderers.min.js.map │ │ ├── pivot.tr.js.map │ │ ├── gchart_renderers.js │ │ ├── pivot.ru.min.js.map │ │ └── pivot.da.min.js.map │ ├── js │ │ ├── LICENSE.md │ │ ├── demo.js │ │ └── light-bootstrap-dashboard.js │ └── sass │ │ ├── LICENSE.md │ │ └── lbd │ │ ├── _alerts.scss │ │ ├── _buttons.scss │ │ └── _cards.scss ├── LICENSE_PivotTable.md ├── LICENSE_CreativeTim.md ├── main.py └── templates │ └── dashboard.html ├── example.png ├── README.md └── LICENSE.txt /Dashboard/static/css/.Rhistory: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NumericalMax/Dashboard/HEAD/example.png -------------------------------------------------------------------------------- /Dashboard/static/img/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NumericalMax/Dashboard/HEAD/Dashboard/static/img/favicon.ico -------------------------------------------------------------------------------- /Dashboard/static/img/sidebar-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NumericalMax/Dashboard/HEAD/Dashboard/static/img/sidebar-2.jpg -------------------------------------------------------------------------------- /Dashboard/static/fonts/Pe-icon-7-stroke.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NumericalMax/Dashboard/HEAD/Dashboard/static/fonts/Pe-icon-7-stroke.eot -------------------------------------------------------------------------------- /Dashboard/static/fonts/Pe-icon-7-stroke.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NumericalMax/Dashboard/HEAD/Dashboard/static/fonts/Pe-icon-7-stroke.ttf -------------------------------------------------------------------------------- /Dashboard/static/fonts/Pe-icon-7-stroke.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NumericalMax/Dashboard/HEAD/Dashboard/static/fonts/Pe-icon-7-stroke.woff -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Dashboard 2 | This is a minimal example of how to use a bootstrap template with pivot table. Data are loaded from a SQL Database. This enables you to evaluate data stored in your SQL Database pretty fast in an appealing way. 3 | 4 | ## Requirements: 5 | Python Libraries: 6 | 1. Flask 7 | 2. Pandas 8 | 3. mysql.connector (differs if you want to use e.g. SQL Server) 9 | 10 | SQL Database in which your data are stored. 11 | 12 | ## TODO: 13 | In the file main.py you have to adjust all parts to your needs which are signed by a TODO. 14 | 15 | ## How does this look like: 16 | ![alt text](https://github.com/NumericalMax/Dashboard/blob/master/example.png) 17 | 18 | ## License: 19 | Most parts of the underlying code are from CreativeTim and Pivottable (Nicolas Kruchten). Please use their copyright notice in your project if you use any of their resources. The mentioned LICENSE files are included into the root folder 'Dashboard/Dashboard'. 20 | 21 | https://github.com/creativetimofficial 22 | 23 | https://github.com/nicolaskruchten/pivottable 24 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright 2017 Maximilian Kapsecker 2 | 3 | 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: 4 | 5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 6 | 7 | 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. -------------------------------------------------------------------------------- /Dashboard/static/dist/export_renderers.min.js: -------------------------------------------------------------------------------- 1 | (function(){var e;(e=function(e){return"object"==typeof exports&&"object"==typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)})(function(e){return e.pivotUtilities.export_renderers={"TSV Export":function(t,n){var r,o,h,u,i,l,g,s,f,p,a,c,d,w,x,y,j,v,m,q,A,b,K,S,C;for(i={localeStrings:{}},n=e.extend(!0,{},i,n),S=t.getRowKeys(),0===S.length&&S.push([]),u=t.getColKeys(),0===u.length&&u.push([]),b=t.rowAttrs,o=t.colAttrs,m=[],q=[],l=0,p=b.length;p>l;l++)A=b[l],q.push(A);if(1===u.length&&0===u[0].length)q.push(t.aggregatorName);else for(g=0,a=u.length;a>g;g++)h=u[g],q.push(h.join("-"));for(m.push(q),s=0,c=S.length;c>s;s++){for(K=S[s],q=[],f=0,d=K.length;d>f;f++)v=K[f],q.push(v);for(y=0,w=u.length;w>y;y++)h=u[y],r=t.getAggregator(K,h),q.push(null!=r.value()?r.value():"");m.push(q)}for(C="",j=0,x=m.length;x>j;j++)v=m[j],C+=v.join(" ")+"\n";return e("