Welcome to Knowage Q&A, where you can ask questions and receive answers from other members of the community.
0 votes
1 view

Hello,

I am updating Knowage to version 6.3.1 and am having problems with the cockpit graphics, the caption is unconfigured and no action.

I emphasize that the caption placement option, present in version 6.2.1, is no longer available ...

Has anyone experienced the same situation and solved it?

Environment Linux, Chrome
in Cockpit, Dashboard and Console by (790 points)
edited by

1 Answer

+1 vote
 
Best answer

Greetings,

In fact the version available for download on the site knowage-site.com is different from the versions available in github (Knowage-Labs). In my production environment I was with the download version of the site, which contains the Highcharts libraries for the construction of the graphics. The Knowage-Labs version uses the Angular in graphics ...

So to use Highcharts in the version available at Knowage-Labs is just:

  1. Add the Highchats directory to knowagecockpitengine \ src \ main \ webapp \ js \ lib;
  2. Update the highcharts414 directory in knowagecockpitengine \ src \ main \ resources \ chart \ templates;
  3. Edit the engine-config.xml file in knowagecockpitengine \ src \ main \ resources, commenting on the "chart js conf START" lines and uncommenting the highcharts414 lines conf START;
  4. Edit the chartRenderImport.jsp file in knowagecockpitengine \ src \ main \ webapp \ WEB-INF \ jsp \ chart \ execution by adding the lines:

<!-- Highchart  -->

<script type="text/javascript" src="${pageContext.request.contextPath}/js/lib/highcharts/4.1.4/adapters/standalone-framework.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/lib/highcharts/4.1.4/highcharts.src.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/lib/highcharts/4.1.4/modules/grouped-categories.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/lib/highcharts/4.1.4/highcharts-more.src.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/lib/highcharts/4.1.4/highcharts-3d.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/lib/highcharts/4.1.4/modules/exporting.src.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/lib/highcharts/4.1.4/modules/no-data-to-display.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/lib/highcharts/4.1.4/modules/drilldown.src.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/lib/highcharts/4.1.4/modules/heatmap.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/lib/highcharts/4.1.4/modules/treemap.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/lib/highcharts/4.1.4/modules/data.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/src/angular_1.4/chart/treemap/treemap.js"></script>

5. Have fun!

by (790 points)
...