Configuring Data Table from Highcharts Basic Column Chart - charts

I am working with Highcharts and looking to create a data table from the Basic Column chart (https://www.highcharts.com/demo/column-basic) with the following functionality:
Flip the row and columns so that the x-axis of the bar chart is the column headers in the data table. So in the example link above, when I click on "View Data Table", I want to take the x-axis from the chart and make it the column headers in the data table.
Be able to sort the columns.
I see examples online of how to do that by building the table first and then creating the chart from the table. But isn't this possible the other way around - creating the chart first and then just configuring the data table to have the above functionality?
Or do you have to create the table first, and then create the chart from that?

I think that the right approach to your requirements will be creating a custom HTML table and parsing data from it into the chart, just like here: https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/demo/column-parsed/
API: https://api.highcharts.com/highcharts/data.table

Related

How to create a vertical line chart from fields on detail record

Trying to create a vertical line chart from data in 4 separate fields per Detail record.
I know how to do it using Excel (see image), trying to figure out how to do it using Crystal Charts. Also, data is per detail record and I found that I can only insert a chart on a header or footer section.
I'm also not sure I'm using the correct verbiage as I can't seem to find an answer using google searches.
Thanks!
You can insert chart into crystalreport from insert --> chart and choose type of chart and data will show in chart, chart insert in header and footer report but will contain all data you choose, also you can insert chart into hadear and footer group if you use group.
Note: Attached picture from crystal report
You can insert a group to provide header/footer for each detail section.
Or, one of the Crystal Reports User Function Libraries listed here allows you to add special charts anywhere you wish within your report, feeding the data into the chart using formula logic.

How to create a pie chart for yes and no answers in Spotfire and not display the Percentage of Yes/No?

I am trying to create a Pie chart as markers in Spotfire map to Show Yes/No answers. How do I do to Display yes and No in pie Sector's instead of Percentage? I am attaching an Excel Spreadsheet with Data with this.
I am expecting to get individual Pie chart for each well in the Spotfire map. For example for WELL_1 Data, the pie chart should have two sectors of two different colors one for YES and one for NO and Sector 1 Should show PRODUCTION, COMPLETION Labels(for yes Category) inside the sector and the Other sector Should show PVT, Image Lables (for no category).
I have tried using the Pie marker option in Spotfire Settings, but not getting the result I am expecting. Any help would be appreciated.
enter image description here.
enter image description here
while Spotfire excels at reading data up and down columns, it's not really designed to read left to right across rows.
you will need to unpivot your table to be tall-and-skinny instead of short-and-wide.
I recommend to start by adding a linked copy of your data table. this way your original table isn't changed, so any visualizations you've already built won't break.
since you haven't specified your Spotfire version, I'll assume you're using 10.x, and my screenshots will reflect that. I'll also be calling your original table Data Table, because I'm lazy and didn't change it in my screenshots ;)
click the + icon in the top left corner
click Other
under "Linked copy to data table in analysis", choose your Data Table
rename the new table to Data Table unpivot to distinguish it, then click OK
from the Data menu, click Transform data...
select Unpivot from the dropdown, then click Insert
configure the transformation
click OK until you get back to the canvas
from the Data menu, click Add calculated column
enter an expression like the following
CASE
WHEN [Category] in ("PRODUCTION", "COMPLETION") THEN "Sector 1"
WHEN [Category] in ("PVT", "IMAGE") THEN "Other"
END
call this column something like Sector
now that you've got the data configured, you can set up the pie chart as needed. here's a sample of that which I put together quickly. I set up the pies on a trellis to illustrate how it might look in your map.

Creating chart of only certain rows

Using Google Sheets, is there a way to create charts for only certain rows?
I have created some reports, but when the source list is sorted differently the report breaks because of using the data source as 'SourceTab'!A2:X2. In the source tab I have about 60+ rows, but only want to report on certain rows.
I thought I could add a column to each row to create groupings, then in the chart call those groupings to create the reports.
add a column to each row to create groupings sounds a good idea. Just create your chart from all available data then filter your data to select only the rows flagged in that column.
you can QUERY() them out like this:
=QUERY({2:2; 4:5; 8:8}, "select *", 0)

Add column data value labels in Google Drive Spreadsheet chart

Is there an (easy) way to add data-value labels to the columns of a Google Drive Spreadsheet column chart? Either fixed or mouse-over?
I have the charts already made, and would not like to have to define them again.
So I'm basically looking to alter the default behaviour of the existing charts.
The spreadsheet and charts are not (yet) for publishing, only for sharing directly.
Nick
Google Sheets embedded charts have text annotations. To use them for values, you could use TEXT() function. I.E. assume that you have a two column chart, then add a third column for annotations. Add the following formula
=TEXT(A2,"0")
then fill down as necessary.
Example
References
Adding annotations to a chart - Docs Editors Help

Named ranges in google spreadsheet charts?

Edit: This question relates to the "old" google spreadsheets that were current in 2013.
Is it possible to use named ranges in google spreadsheet charts?
I need to dynamically update the dimension (starting position and size) of a range and be able to reflect it in a chart, i.e. I need the chart source range to follow the position of moved source data range.
Extra information:
I've got two sheets. One has a header followed by 'input' row and data rows. When I type anything into 'input' row my script automatically adds a row just after this one and moves my new input there, therefore creating new row of data.
About chart: If I assign a data range that includes only data rows, new row won't be included because whole 'old' range got shifted. $ sign is ignored when specifying data range. So what I'm doing is to include in the range my 'input' + 1 header row. They have no values so in the chart you cannot see data points in the first two positions. I'm using a combo chart with another range from another sheet that has no header, so it looks like this:
(usually there is some value for the green histogram right at the origin of the chart).
So the line chart is shifted by two positions to the right, but it should start from position 0, so I want the chart to somehow follow the range or to redefine it, so it always stars from the first data row. I hope it makes sense.
Charts use range as argument, have you tried to simply use getRangeByName to define the range ?
Charts don't support named ranges. However, you can set up your chart so that the source data range is an entire column (for example, Sheet1!D:D). Then the chart will show all the values in that column, taking into account even rows that you will add (or delete) after chart creation. If the first rows (for example 4) contain table headers you can specify something like Sheet1!D5:D as your source data range
In searching for this, I found a solution I thought I'd share.
I have a set of data from which I'd like to create a set of charts. My fairly simple workaround was to create a new tab for each chart with a pivot table to pull in my data based on my criteria for each chart. I inserted a row at the top to hold a SUM of my values in the pivot table below, rather than referencing the moving "Total" cell in the pivot table itself.
Note: I hid the title row of the pivot table and unchecked the "Totals" within it to get the SUM to work correctly. Hope this helps someone!