google charts RTL support - google-visualization

I am using Google Charts in my project, which is a multi-lingual one and hence need to support LTR as well as RTL for the contents.
All looks good except for the included charts where:
The vertical axis should be displayed at the right,
All texts (title, legend, etc.) should be shown correctly as if using dir="auto".
Does anyone know how and where this can be configured?

Related

QPdfDocument/QPdfView: How to display an animated PDF?

I implemented a PDF Viewing widget in C++ using Qt, loosely based on https://doc.qt.io/qt-5/qtpdf-pdfviewer-example.html, using the pdfwidgets module. (For this question, we can assume that I copied the code in that link 1:1).
This works well so far.
But now the thing is, the PDF I want to display happens to be an animated PDF. Opened in a regular viewer like Acrobat, it will show a short sequence. That sequence is located on a single page, the frames are not different slides.
In the documentation of the QPdfDocument and the QPdfPageNavigation classes, I can't find any functionality that deals with animated pages. It would suffice if I had any way to set the current animation phase.
Is this possible at all? If so, how?
It's not implemented at the moment. On Windows, you could use an ActiveQt widget to embed Acrobat Reader inside your application, if present. Otherwise you'd need to find a PDF rendering library - most likely a commercial one - that has such support.

How to draw connections between items in a QTreeView

I wonder how to draw the lines connecting the items in a QTreeView as illustrated in the picture under Tree Model. My program will run on different platforms and thus use different styles. Can I guarantee that the items are drawn as desired?
I feel, using style sheets might be problematic because certain styles do not print such lines and using a delagate might lead me into issues of double drawing.
There's an example in the documentation here showing exactly what you want to achieve using style sheets.
Please note that when you use style sheets QStyleSheetStyle kicks in, irregardless from the QStyle your application is using at the moment. So if you decide to go this way you will override the look and feel of your control the same way, irregardless from the target platform.
If that is a problem, you may consider to use style sheets only for certain platforms. As an example:
#ifdef Q_OS_MAC
myControl->setStyleSheet(":/my_stylesheet_for_mac.qss");
#endif
Back to the example in the documentation, it uses a few images containing all the various lines (vertical, horizontal, branch, etc) and the ::branch subcontrol and its states to determine which image to use.
The result is something like this:
.
Obviously, you must change the code to show the vline picture instead of the arrows.
As a side node, I may suggest to consider why you want to do this if you are using native styles. If your application has a native look and feel, you should not alter it in any way. That is, if the target platform doesn't render lines to connect tree view items, then you shouldn't add those.
However, if your application is not required to look native across all the target platforms, you may consider using the same style (e.g. Fusion) and deliver the same user experience no matter what the platform is.

Disable layers (like roads) on map visualization in PowerBI

I've created a really simple PowerBI report based on some dummy data in a CSV. It looks like this:
To repro my scenario just input any kind of map data like the single number shown above, and plot it in a map visualization with all the default settings.
The map has a lot of clutter, mostly caused by the roads and their names (and to a lesser extent by the city names). Is there any way to disable layers in the map visualization?
I've tried to answer my own question by:
Going through all of the individual settings on the map visualization;
Using some Google-fu to find my answer, skimming the most promising result and a secondary set of "tips and tricks";
Re-watching the appropriate parts of the Pluralsight course on PowerBI;
But haven't found a way to do this yet.
Am I missing something? Or is it just not possible?
The default map/filled map visuals in Power BI are limited in terms of options such as decluttering the map (even compared to maps in Excel 2016).
One option (possibly the only one right now) is to use the ArcGIS maps, which you can enable under Options and Settings > Preview Features > ArcGIS Maps for Power BI. (It is a Preview Feature). Once enabled, you can select the visual at the end of your list of visualizations.
These do allow for finer-grained control. For example, you can click the In-Focus Edit Mode button at the top-right on the ArcGIS map and then choose Basemap to change to a gray map.
ArcGIS maps can also show a base layer, such as population density (which I think you had asked about in another question).
There are certainly some considerations when using this feature (it is a preview feature, and your data is going to Esri rather than Bing to be plotted).
Introductory Blog Post: https://powerbi.microsoft.com/en-us/blog/announcing-arcgis-maps-for-power-bi-by-esri-preview/
More Information: http://www.esri.com/software/arcgis/arcgis-maps-for-power-bi

Advanced customization of google charts generated from a spreadsheet

I have my beautiful google bar chart that I generated just clicking in "insert chart" from google spreadsheet.
how can I modify it in an advanced way like writing code?
I have to insert a horizontal line in the bar chart that represent the productivity limit.
if I could do that without writing code would be better, but even writing code, I'd like to edit the chart generated by google spreadsheet, not start from scratches.
Tnx!
I solved the problem in this way.
I took the example forum google and i add the link that I got sharing my spreadsheet adding in the end of the link:
&sheet=PivotGiorni&range=A2:B
This set the sheet and the range.
Then the chart just work.
for adding the line I found this.
Thanks to you all! :D

Drawing line in sheet using PHPExcel

I am using PHPExcel (http://phpexcel.codeplex.com/) to generate Excel spreadsheet using PHP. Generally, this application can address what I need when working with PHP and spreadsheet, however when I try to draw line in the spreadsheet, I cannot find how to do it.
Normally I can do it in Excel application by doing Insert > Shapes and choose the line. But how to do it programatically using PHPExcel?
I need to do it since I have to plot point and connect them to make a straight line from one cell to another cell in spreadsheet (hence I cannot use Chart feature for this purpose).
Many thanks in advance for the answer.