I am trying to fix this problem, but I couldn't.
I have a table containg many data on my website, and there is a line chart which presents the value of the row. If I click one row of the table, the line chart will change.
How do I check the line chart which has already changed if I click the table in Cypress?
Thanks!
I have two tables, one that shows the sales history of salespeople per year, and another table that shows the sales history in months. As you can see in the image below:
I need to create a composite chart (I believe it is a composite chart, as it will have more than 01 line) that is exactly the representation of the month table.
After creating the chart when I click on the seller Miguel for example, the chart will be rendered with the history of that seller.
And for example if I click on month 03 of the graph, the table of sellers will be rendered only with the sales that were made in month 03.
I don't know how to do it, I managed to create a composite chart that presents the same data as the month table, however, I was unable to integrate my chart together with my tables.
Can you tell me how I can do that?
I put the codes I made in JSFiddle, here are the links:
Sales/Month Table: https://jsfiddle.net/bernalvinicius/ejxcfpvz/15/
Month Chart: https://jsfiddle.net/bernalvinicius/kanm158j/17/
Thanks in advance.
Just put all your code in the same file(s), combine your crossfilter instances, and put all the charts in the same chart group (the default), and it should work fine.
The chart group is the second parameter to each chart constructor. If it's not specified, then the chart goes into the default chart group.
When any chart is filtered in a chart group, it will tell all the other charts in that chart group to redraw, and they will pull their new data from their respective crossfilter groups. (Sorry about the naming, a dc.js chart group has nothing to do with a crossfilter group.)
In order to combine your code, I renamed both of the crossfilter instances to cf. Then I added the new fields you are generating to the existing rows, instead of mapping the data:
data.forEach(d =>
Object.assign(d, {
mes: d.Month,
atual: d.Vendas_Ano,
passado: d.Vendas_Ant
})
);
In your table fiddle, you were initializing the table for every row in the data with a data.forEach() which wasn't necessary. That's why it was so slow to load.
Other than that, both fiddles had the same general structure so I just copied and pasted the code from the table fiddle to the composite fiddle, HTML, JS, and CSS.
In the JS I made sure to put the same lines outside and inside the d3.json() callback as before.
It looks like it works?
https://jsfiddle.net/gordonwoodhull/0q1y5ftr/15/
I am working on a JXA script that will be used to copy tables from an existing Numbers sheet, and then paste them into a newly created sheet (in the same document) before making some modifications to individual cell values. I have most of what I need working, but have been unable to figure out how to change the active sheet from the source sheet to the destination sheet (or any sheet).
I have tried the following;
Numbers.documents[0].sheets.byName({name: currentSheet}).activate
It seems to execute (there are no errors), but nothing happens in Numbers. The active sheet does not change. I have the script working in AppleScript using
set active sheet to sheet currentSheet
Any help is appreciated.
I hope this help.
var numbersApp = Application("Numbers");
var docNumbers = numbersApp.documents[0]
// First sheet
docNumbers.activeSheet.set(docNumbers.sheets[0])
// Using sheet name
docNumbers.activeSheet.set(docNumbers.sheets["sheetName"])
I created the content type called topic. I have added field called date in topic content. Configured the search_API and created index for search for the title and date. Now i want to display the content of the current quarter month from April to may and also want to change next quarter dynamically in the full text search using views.
I am trying to create a report and I cannot figure out how to run/group the information. I am using VS 2008 R2 SSRS reporting services.
For the report, I have a list of questions. These questions are asked by a group of people over a period of time. For each question, I need a chart that displays the answers for each person in a bar graph. For example:
How is your day?
Person 1 -------great--------|---bad--|------okay----------|
Person 2 --great--|-------bad-------|--------okay----------|
Person 3 --------great------------|--bad--|------okay------|
The above would symbolize a chart with the amount of time the person answered 'great', 'okay' or bad throughout a period of time.
My question is, how do I create such a chart (an actual chart not a text representation) in the table so that the chart will follow each question. I will have anywhere between 5-10 questions all of which need a chart displaying the results.
I am at a loss here. I don't know SSRS very well and I have been unable to create anything other than a data bar in the table.
Any help is appreciated!
SOLUTION:
I have solved the problem by using a list with a row group grouping by question. I can then add a chart into the list and format the chart accordingly.
Sounds like you might like sparklines and databars!
http://technet.microsoft.com/en-us/library/ee633676.aspx#DataBars
http://blogs.msdn.com/b/seanboon/archive/2009/11/23/an-introduction-to-data-bars-in-sql-server-reporting-services-2008-r2.aspx