Raising a certain part of cholorpleth map - choropleth

I have a working choropleth map which shows number of patients in a certain coloured area. I want to raise the height of the specific area according to the patient count. The variable height is equal to the number of patients but how to raise the specific part of map?
I want the result like this
Please suggest

Related

Custom display of cell value which depends on other cell's value

Say I have a column with multiple potential value-ranges (values could range from 1-10, 1-100, etc.).
Now, I want to display the upper 20% of records within this column with 5x :thumbsup: emoji's, the second 20% with 4x :thumbsup: emoji's, etc.
Any idea how to achieve this with django-tables2?

Requery when selecting area in PowerBI map

I have a map that does not shows all points from my dataset (too many, its an expected behavior). If I filter the data, Power BI recalculates the points to be shown, while ALL filtered data (not only shown) are used for any other calculations or visuals. But, if I make an AREA selection IN MAP (lasso selection), only the selected points I can see in map are used for thhese calculations.
Is there a way to FILTER AND RECALCULTE the dots IN SELECTED AREA? I mean, use the lasso selection not to mark specific poits, but to filter values in latitude/longitude selected range.
Thanks!

How to set colour value automatically for polygons in a ESRI Shapefile?

I have 6 values which are standing for colour values for making maps. So each number is standing for a colour. The values are always the same and the numbers are 59, 63, 70, 72, 76 and 77.
I have a lot of polygone ESRI shapefiles which are showing the administration of each country (OSM Data for example the states of India, which is the first administration level of India). To have the same style in each map for printing, I would like to use the colour values (59, 63, etc.) for every administration of each country. So each shapefile has a attribute field which is called "colour value".
Now the tricky part is: the polygons (so the states of India) should have always one of the values, but the direct neighbour state should have always another value. Otherwise the colour of the states are the same of maybe two of them, which are neighbour states, and you can't see directly the difference on the map after colouring.
I put some picture in the attachment, where you can see the correct version how it should be and the incorrect version.
Has anybody a clue how to resolve that problem automatically? Right now I have to go in each attribute field line and fill out by hand, because I have to watch which is the next neighbour to don't use the same colour value.
Thanks in advance.
Cheers,
Correct and Incorrect Version for example

QT infinite view on model

I am looking for a way to create an infinite view on a model that is not initialized completely. I would like to create something similar to an Excel spreadsheet, and all I came in was to start with an initialized model (e.g. 100x100 empty cells, maybe working on a database that has empty values), and then just dynamically add next rows/columns (and update view) once we are close to the end of a scrollbar.
But I am wondering if it is the best solution - I think I would definitively benefit from a model that's filled in only partially - by that, I mean store information in the model only about filled cells, and let view handle showing 'empty cells' (which would have been created once we - for example - click them).
I know it would be necessary to store XY positions and cell data (instead of only a 2D container with data), but I would like to try different solutions:
a) have a pointer-like container which would contain a list of filled cells with their positions on a 2D plane
b) have a 2D container with size (x,y), where x and y would mean the 'last filled cell' in a given dimension
And for both solutions, I would like to dynamically allocate more place once data is written.
So there is my question - how can it be achieved with QT model/view programming, if it is even possible to show 'ghost cells' without a model filled with empty data? It would be also nice if I could get a brief explanation of how it is done in apps like excel etc.
Well, your table will never be truly infinite unless you implement some indexing with numbers with infinite digit count and in that case, you will probably not be able to use Qt classes.
But I think you should choose some big enough number to define the maximum. It can be a really large number... if you are on a 64-bit machine, then your 'infinite' table can have 9,223,372,036,854,775,807 rows and the same number of columns. This big number happens to be the maximum of signed 64-bit int. And int is used for indexing with QModelIndex in QAbstractItemModel. So you can have a total of 8.5070592e+37 cells in your two-dimensional 'Excel' table. If this table size is not big enough for you then I do not know what is. Just for comparison, there are approximately 7e+27 atoms in the average human body, maybe a bit more after the covid lockdowns because people were eating instead of practicing sports. :) So you can count all atoms of all people on this planet (say there are a bit less than 10e+10 people altogether). But you will need to buy a bit bigger computer for this task.
So if you decide to go this way, then you can easily override QAbstractTableModel and display it in QTableView. Of course, you cannot save the underlying data in a two-dimensional array because you do not have enough memory. But you have to choose some other method. For example a QHash<QPoint, QString> where QPoint will represent the coordinates and QString the value (you can choose any other type instead of a string of course). Then when you will want to get the value for the given coordinates, you just look up the value in the hash table. The number of data points you will be able to hold depends only on your memory size. This solution is very simple, I guess it will be some 30 rows of code, not more.

Specify number of map points display on maps in Microsoft PowerBi

I am working with Longitude-Latitude values using the default powerBi map visualization. I want to be able to specify a certain distance and also be able to specify how many map points will be displayed within that radius. For example I would like maps to plot 500 or less lat-long points within any 1 mile radius in the US. Just to be clear, maps should plot all map points within the US that are quantity 500 or less in any 1 mile radius.
Can anyone help me to solve this in PowerBi or is there any other visualization tool in powerBi that can help me to do this?