How can I handle a pie chart with no non-zero data? - svg

I have built a dashboard that displays many bar and pie charts. It also has the ability to filter. Some filters cause there to be no data for the pie charts, and this causes my app to break.
It has to do with d3.svg.arc. The error I get is 'problem parsing d="MNaN, NaN...". I found this answer by Mike Bostock, and I think it's related.
Should I
Figure out how to handle the case where the data is 0, or
Use .exit? (My attempts here have given me problems on the initial draw, which sometimes also won't have data).

Related

ArangoDB Graph shows different result every time

I'm new to ArangoDB and currently trying to display the "Game of Thrones" and "debian_dependency_graph" from the Example Datasets.
In the GoT case I'm able to get the full view by using "Fetch full Graph". Yet there doesn't seem to be a way to add "Traits" in a useful way.
Even stranger is the behavior of the debian_dependency_graph which gives a random, but useful result at first, but changes to nodes only with no added edges after displaying everything.
I'm aware we're starting with a random graph in the beginning, but why isn't there a useful way to switch between the possibilities? Also how comes in the Debian-packages the edges are gone after displaying everything?
From looking through the web I see that in previous versions there seemed to be a way for adding filters and doing changes, in my version (3.4.1, rocksdb)
I can't make much sense of "Configure graph settings". Is there something I'm missing out?
For instance services or showing AQL-Queries as graphs. I'm still trying to figure out what's out.
Screenshot of the Debian dependency graph (Full graph):
The "Configure graph settings" option which you mentioned above is a right tool for you to use.
You can force graph to be rendered starting from a specific node if you change Startnode (the value should be equal to _id property value of a particular object within your graph)
The problem with the missing edges looks like a limitation of the graph viewer (you are trying to display too many object at the same time and it will be a complete mess if it would render all the edges)
You can play with Search Depth & Limit settings to limit the amount of nodes being rendered at the same time which will allow you to see edges

setShared Causes Text to Layer and Look Terrible

We can have 4-5 people signing contracts at once, and are currently using the 'setShared' function to share text across all signing experiences for each client. However, when we use this, the text on the final contract comes out very blurry because the text layers get stacked on top of each other.
Sample text here:
I don't think setting Shared property is causing the problem. If you are setting the bold property on the tab then I suggest removing it. Also trying changing the font/fontSize properties to get the result you are expecting.

How to print a multi-page map with data from excel, MapPoint and VBA maybe?

I have an excel file with information on my company's customers including addresses and latitude and longitude. I need to generate printed street maps showing a reasonable level of detail with pins showing the customers and bubbles displaying their info. Essentially I need to create something that looks like a Thomas Guide except with our customer info layered on to the street maps. I've been looking for DAYS and can't find any software to automate this process.
Currently I'm importing the data into Microsoft MapPoint, which does a fine job of generating the map with all necessary data. However MapPoint can only print what's currently displayed on the screen. So I'm stuck printing at a close zoom level, scrolling over, printing again, and continuing this process ad nauseum.
Is there maybe a way to automate this with VBA in MapPoint? I can find almost no info online about VBA for MapPoint.
Or maybe there's a piece of software out there that can do this at the push of a button. Printing a multi-page map of an area doesn't seem like that crazy of a demand.
Any help would be appreciated.
MapPoint's API is actually pretty well documented in the MapPoint help file, and most of the examples use VB6, which should be adaptable for VBA - you will need to add a reference to MapPoint's object model.
Yes you can automate the printing. Other approaches include copying to the clipboard; save to web page (and extract the Map's GIF image); or to use the GetPictureFromObject(). I recently wrote an article about using the latter from C# (it would be simpler from VB6 or VBA)
You could also print to a very large PDF, see the tips from this newsletter --
http://www.mp2kmag.com/update/mappoint.newsletter/2013-02-18/
Here's a direct link to the article --
http://www.mapforums.com/print-large-multiple-sheet-maps-any-printer-27603.html
Eric

pentaho: Openflash Chart appears blank

I specified the following configuration in CDE for an openflash chart:
the name, html object, title, chart type, datasource (which uses a jdbc connection) and set 3D to true
When I click preview, all other CCC charts appear and the space reserved for the openflash chart is blank
Does the openflash chart component work?
Is there anything else I was supposed to configure that I am missing out on?
Rumbi
I can't really answer your question without some more details (like bi-server version), but it's probably a moot point.
We haven't yet removed OpenFlashCharts from CDE because some older dashboards depend on it, but that component is very much EOL. The only "advantage" you get from it relative to CCC is that you get 3d charts (which we didn't implement in CCC because, frankly, they only make it harder to interpret the chart data). If CCC doesn't work for you (e.g. because you really really want 3d charts), I suggest you try the Fusion Charts plugin provided by ExpandIT, I believe they wrapped Fusion Charts into a CDE component.

Cognos 8.3 No Data Content issues

Upgrading from 8.2 to 8.3 and testing out the new No Data Content functionality. Report looks in order if results are returned. The No Data message does not appear. However if we test the report (pass in parameters expecting no results), we are returned a blank page (pdf, html, excel output). Not even the header or footer appear on the page. And the No Data Content message does not appear as well.
We have very complex reports using Oracle SQL and in most cases the Header content is linked to a SQL statement to render output from the database as well as list the parameters passed in. The issue seems to be related to embedded data objects, i.e. we have a list object embedded within a table object. I've tried stripping out the extra layers with no success thus far.
In 8.2 we used style variables, i.e. RowNumber()=0 or RowNumber() is null to conditionally hide data objects in the body of the report. We've never used any conditions to hide or display the header or the footer and in 8.3 now this seems to be an issue.
This seemed like such a useful enhancement in 8.3 but we haven't gotten it working yet. Any thoughts or suggestions to try?
Thanks for reading this. I appreciate any advice.
Joe
We ran into this same problem when upgrading reports from 8.2 => 8.4. We reported it to Cognos as a bug -- Not sure if they've assigned a bug tracker id to it, but we got the impression it wasn't going to be fixed soon. (Obviously, if it exists in 8.3 and it has been carried forward to the next version, it's not a high priority.)
I'm sorry I don't have an answer at the moment on how to fix it, but I was planning to look into work arounds next week. I'll edit this post with any ideas I come up with.
UPDATE:
Not sure if this is an available feature of 8.3, but in 8.4 there is a new "No Data Contents" property for data containers (lists, blocks, etc.). Setting this value to yes creates two tabs at the top of the page, one for a page to be displayed if data is returned, and another for instances when no records are found. You can customize a message to be displayed using that second page. Pretty cool, actually, but buried in the documentation.
Hope that helps. If you still have problems, check out the Index topic "no data > specify what appears for a data container."
yea it appears that a blank pdf is returned... but in fact the cognos viewer bugs out at the second prompt page if there is no data. Headers and footers and items in which didnt need data to render ... as not showing up as well.
This existed in 8.2 and we were always able to do some sort of work around to get it to atleast show. Seems much more prevalent in 8.3 now.
Id like a solution on this as well! halp! >_<
Edit: seems a slight work around is to create a new report in 8.3 and copy each component starting with queries... then variables.. then objects on the page.. followed by page sets and master detail relationships. in that order for simplicity. Essentially recreating the report from scratch in 8.3 seems to fix the problem.
This works for about 90% of our reports.

Resources