Web page used to render a chart. Separated out from the widget so that it can be re-used in various other contexts, such as off-screen rendering.
#include <DataAnalysis/Chart/chartwebpage.h>
◆ ChartWebPage()
◆ ~ChartWebPage()
◆ acceptNavigationRequest()
bool acceptNavigationRequest |
( |
const QUrl & |
url, |
|
|
NavigationType |
type, |
|
|
bool |
isMainFrame |
|
) |
| |
|
overrideprotected |
◆ createWindow()
QWebEnginePage * createWindow |
( |
WebWindowType |
type | ) |
|
|
overrideprotected |
◆ flushD3Transitions()
void flushD3Transitions |
( |
| ) |
|
◆ getChartAsSvgXml()
void getChartAsSvgXml |
( |
const QWebEngineCallback< const QVariant & > & |
resultCallback | ) |
|
Asynchronously return a string by calling the callback object, containing the serialized XML content of the internal SVG representing the rendered chart. This serialized SVG will have all of the CSS rules active in the document embedded into it so that it requires no attached CSS file.
◆ getHtml()
void getHtml |
( |
const QWebEngineCallback< const QString & > & |
resultCallback | ) |
|
Asynchronously return a string containing the HTML context by calling the callback.
◆ javaScriptConsoleMessage()
void javaScriptConsoleMessage |
( |
JavaScriptConsoleMessageLevel |
level, |
|
|
const QString & |
message, |
|
|
int |
lineNum, |
|
|
const QString & |
sourceId |
|
) |
| |
|
overrideprotected |
◆ renderChart()
bool renderChart |
( |
const Chart & |
chart, |
|
|
bool |
embedChartInHtml = false |
|
) |
| |
- Parameters
-
chart | The chart to render to the page. |
embedChartInHtml | If true, the contents of the chart will be embedded in the HTML, allowing the page to be exported as a stand-alone web page. |
Renders the specified chart on the web page, which is set up to render D3 / NVD3 charts. Note that this function is asynchronous - if action needs to be taken after the chart has been rendered, callers will need to connect to the renderComplete signal.
◆ renderComplete
◆ setRendering()
void setRendering |
( |
bool |
b | ) |
|
|
protected |