I'm struggling to have labels always displayed on a chart created with Chart.js in a Ionic 2 app.
I'd like to have something like this https://stackblitz.com/edit/doughnut-chart-6iuguq?file=app%2Fapp.component.ts
but I'm not able to load correctly this js plugin https://github.com/emn178/Chart.PieceLabel.js
Any help to find a solution?
Just add the import statement to the top of the controller (.ts file)
import 'chart.piecelabel.js';
Related
How to save plots in Bokeh JS as PNG programmatically?
The documentation gives the following example in Python:
from bokeh.io import export_png
export_png(plot, filename="plot.png")
I could however not find an example on how to programmatically save plots in JavaScript.
The use case is to generate plots in the back-end and use them in automatically generated reports.
Any tips on saving plots in Bokeh JS programmatically are welcome!
It is bit complicated so I hope that explain this properly.
I have app which is created within new Page in admin site. In that app I have also drop-down list with my installed apps like on picture.
drop-down of installed apps in new Page
I need someway to add models of selected app dynamicaly by add button at the end of this Page. So if I select app, with add button add model of app below page content, next select second app and add model below app added before. So at the end I will have filled Page with models of apps that I added.
Adding functionality like on this picture or with some add button or add button next to drop-down.
desired functionality
I dont have so much experiences in Django that I can make it self right now. I know that this is possible but I need help of you that you are Django Pro. I really need to make this done.
I have a donut chart (highcharts). By default, I can click on the export button to download the chart as image or other format. What I want to do is not download it. Save it somewhere and include it in the pdf export.
For example, say i have a donut chart which shows the expenses of a farm. I also have a tabular view of the same data. Right now what I can do is export the table as pdf/csv in django. I want to include the highchart as well in the pdf report. Is that possible? And how?
This feature is not build-in in our exporting, but you have two abilities:
setup your own exporting server and develop save file on your webserver
use highcharts cloud
Use a solution like this here which you can combine text, svg chart, tables, barcodes, whatever yku desire to PDF output
http://www.cloudformatter.com/CSS2Pdf
There are samples of all if this including highcharts shown on the pages.
I created an article in admin and want to show a pop-up with click event. I tried the following things:
Using script tag.But it did not work. And showed value to front side.
Used module fancybox and module simple pop-up. But they are showing error. I think because the core jquery file is loaded after the fancybox js file. But I did not know any way to change order of js files in head .
Could any body help me? I am new to joomla . Thanks in advance.
I found the solution. I added fancybox js in templates js and fancybox css in templates. Then $(".modalbox").fancybox();. Then adding div in articles admin.
Hi this is a long shot i think but here goes.....
Basically i have a few custom plugins and apps being used in my django /django-cms site. I have set tinymce up which is working fairly ok however what im wondering is it possible to use the built in text plugin for the TextField model fields in my custom plugins and apps?
so in effect the info text field for my main content plugin would actually render in the admin site as the text plugin
Like i said i think this is a long shot...
You cannot use single-plugins on models, however you can define PlaceholderFields on your custom models to put cms plugins in. So you can define a PlaceholderField, put a TextPlugin inside that placeholder and do whatever you want.
For more information, read the official documentation about this http://docs.django-cms.org/en/2.1.3/extending_cms/placeholders.html
I also had this requirement (formatted text on a django-cms plugin configuration) and ended up with the following workaround:
I installed django-tinymce and changed my TextField to an HTMLField in the CMS plugin configuration model. This will render a tinymce text editor in the plugin configuration form. You can then use the input from the HTMLField in your plugin template with the ...|safe filter.