Overlaying issue in heremap implementation - maps

I am not able to overlay the here map.
First time I can pass lat lang and it gets plotted.
on the same when I pass different latlang I see old and new plot at the same time. Need to solution for this.

I think you are adding a new marker in the here map. Rather than doing that, try doing it this way:
Create a marker object with a latitude and longitude.
Use that marker object and just update the geo-coordinate with the updated latitude and longitude.

Related

filter data and update d3.js sankey diagram in react

i want to make a react app that allows to filter a sankey-diagram with a slider.
I'm rather new to react, so i'm still a bit overwhelmed.
This is the current state:
https://codesandbox.io/s/react-d3-sankey-3gbfjh
The code for the sankey Diagram is based on the example on observable: https://observablehq.com/#d3/sankey
There are several issues at the moment:
The filtered data is only available after the slider is used once
The plot does not change even though the data does
The second part is solved if i add the data to the dependency array in the useEffect hook i use to draw the chart, then the new chart is however drawn on top of the previous one.
I'm glad for any help with this.
I got it to work now. As i figured above the data should be included in the dependency array. To clear the plot when changing the data i use this code:
svg.selectAll("*").remove();
My approach appears to be similiar to this actually:
https://blog.griddynamics.com/using-d3-js-with-react-js-an-8-step-comprehensive-manual/

How can I manipulate the date shown in the headers of a anychart resource gantt when there is no data to be loaded

We use the anychart GanttResource chart to show Technicians with their tasks on a daily base. To do this we use a DateFilter outside the component to load our data. Then when the data is retrieved from the API we set this data to the chart. As long there is data retrieved there is no problem, the chart fluently goes to the chosen day and only shows this data. However when the API returns no data or a 400, we add an empty list to the chart data. This looks ok at first, but when looking better to it I noticed the chart defaults back to today as date to show in the header. How can I manipulate this so the selected filter date could be shown there?
Anyone any suggestions about how to get this result? I can't seem to find a functionality or such to set the timeline date to use.
If my explanation is unclear then please let me know so I can elaborate any further or provide any screenshots to make it more clear.
It's not possible to zoom to some period of time when you don't have any data. But you can add an auxiliary element (e.g. a marker) to the data, and you'll be able to set the timeline zoom to a specific range. After you get the real data, the element can be deleted. Please check this sample: https://playground.anychart.com/uZ3gynNU

Filter data in highcharts by date and time

My web page initially loads the highchart (scatter plot) using the timestamp data for the whole month, but I want to create custom input field that allows to enter date/time range and dynamically plot only those points that are in the range and "hide" everything else. What I already have in mind is that I can add an event listener that listens to change in the input field and reloading the whole chart and filter, but there is a lot of points so I guess this approach is not very efficient. Is there an efficient way to accomplish this?

CARTODB Torque Map

I have created a time series map in cartoDB. Is there any way to have the units display in mm/dd/yyyy hh:mm? Currently the animation map only displays the mm/dd/yyyy.
Do you mean date in the timeline widget? I'm afraid this text or format of it cannot be changed, you'd need to create own custom time controller.

JFreeChart - insert photos at specific locations on chart

I want to make a chart reflecting signal changing during a movie timeline. Any suggestions that I can insert multiple photos (images) at specific location on a JFreeChart? I want to create preview photos of different chapters of the movie on the time series and plot the changing signal chart above that time series. Thank you
You can use an XYImageAnnotation (assuming that your chart is created using an XYPlot).

Resources