Comments (5)
This capability was added in 3.4 in PR #13554
In fact, your problem is a usage issue. As stated in the documentation, the scale of datetime axes is "milliseconds since epoch" In your code you are asking for circles with a 1 millisecond radius on a scale of months. So, entirely predictably, they are "invisible". If you change the radius to be a reasonable number of milliseconds for axis that spans months:
radii = np.ones(N) * 100000000
Then the circles show up, and the dilation as well:
![Screenshot 2024-05-05 at 19 05 46](https://private-user-images.githubusercontent.com/1078448/328066160-ab07e07b-af2c-48af-a898-a3f4586aec99.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTU0NzE1MDUsIm5iZiI6MTcxNTQ3MTIwNSwicGF0aCI6Ii8xMDc4NDQ4LzMyODA2NjE2MC1hYjA3ZTA3Yi1hZjJjLTQ4YWYtYTg5OC1hM2Y0NTg2YWVjOTkucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDUxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA1MTFUMjM0NjQ1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NmU5ZTg3ZTAwNjQxOWVjMDM3Mzk3NGQ4ZmFmMzg3MTZiOWE0OTc4YjUxMzg5ZDk0ZWViZDVjYzBiZGYwNDlmMSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ._vvJJliXJskPpGWM4jCXDuEgBBtlY8Y7uRcC_qC2TWg)
However, I might suggest using scatter
rather than circle
which would afford configuring a size
in pixels, rather that a radius
in data units.
Lastly: I am trying to be patient since you seem to be both new to Bokeh and having struggles. But given that, I'd ask you to consider that if you are hitting an issue, it is entirely possible that it is a usage issue. The GitHub issue tracker is reserved for bug reports and feature requests only. It is not the appropriate place to seek general support or help with usage questions. For that, use the Community Discourse site.
from bokeh.
Also, re:
have you considered that those OSS contributors left because the code base is not friendly to contributors?
You misunderstand, completely. That statement was about me, seriously considering leaving OSS development after nearly 20 years, because I don't want to put up with users who are "pricks by nature" (your words) any longer.
from bokeh.
Since you closed my discussion point, have you considered that those OSS contributors left because the code base is not friendly to contributors? I spent the better part of the weekend going through the code base and undisciplined is how I would describe certain aspects of the code base, granted it is OSS but still. To be fair I think Bokeh is the best graphing library out there for what it does, and I wouldn't dream of writing anything even close to it on my best days, let alone trying to do it as an open source project. I know it doesn't sound like it because I'm a prick by nature, but I'm actually a huge fan of bokeh and I'm not being sarcastic.
Alas not that it matters but I don't believe there is any way for scatter to have the on hover effect of scaling size. I spent a couple of hours trying to do this to no avail with the provided API.
Thanks for the link. It makes a lot of sense that radius is measured in milliseconds and I should have made the connection. Usage error, my mistake.
from bokeh.
Alas not that it matters but I don't believe there is any way for scatter to have the on hover effect of scaling size.
I literally posted a screenshot above demonstrates that it is possible (with 3.4+). Here's another, explicitly with scatter
and size
:
![Screenshot 2024-05-06 at 13 31 49](https://private-user-images.githubusercontent.com/1078448/328312098-0a6f3f88-0e80-4e69-990e-189ae21d625b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTU0NzE1MDUsIm5iZiI6MTcxNTQ3MTIwNSwicGF0aCI6Ii8xMDc4NDQ4LzMyODMxMjA5OC0wYTZmM2Y4OC0wZTgwLTRlNjktOTkwZS0xODlhZTIxZDYyNWIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDUxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA1MTFUMjM0NjQ1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MzdlOGVmZGQzNWExMzMyNzBmMjdhN2NiOTE3ZThiZDQyNmZlMmFkYmNhYTg0OWM0OWE2Y2IwYjY0NDViYmViMyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.r-KWdbBz7TrV5eq6z-NBZT0wg95ZUVMVOjrntfpnHDQ)
But if you would like to discuss usage questions, the community discourse is the correct place, not the tracker, as I already stated.
from bokeh.
That is a relevant clarification. I'm not in your shoes and frankly I don't do what you do not only because I can't, but I don't want to for the same reason you're thinking of leaving. But it's safe to say a lot of people use Bokeh for things which are a net positive in the world, and I'd be doing them a disservice if I didn't ask you to stay your course.
Not sure you care, but I thought you should know I wasn't just willy nilly trying to piss maintainers off, and I didn't know you wrote Bokeh. My frustration came from spending Friday + the entire weekend adding a border around a plot & trying to get a data point to pop on hover, and I was able to only do one of those things. And I did go through the documentation -- in fact it was the only thing I could do because I couldn't make sense of the code base, and a lot of the CSS related docs did not work for me.
I apologize.
from bokeh.
Related Issues (20)
- [BUG] Using array/list in line_dash for hspan doesn't work HOT 7
- [BUG] ContourColorBar update is incomplete HOT 3
- [Enhancement] Improve User Interaction Clarity for Polygon Drawing Tool in Bokeh 3.4.x HOT 11
- [BUG] cannot build environment with pixi due to `firefox =>96` constraint
- Can't build extensions on Windows
- [BUG] <b> and <strong> ignored in tooltips on Firefox HOT 3
- Move sampledata files to pip/conda installable package HOT 6
- [BUG] TableColumn visible property is not working if a column is added after the DataTable is created
- [BUG] autosize_mode prevents DataTable values to be updated
- [FEATURE] Support directory upload and clearing inputs from Python for `FileInput` widget
- [BUG] BokehJS standalone initialization fails HOT 8
- [BUG] Custom CSS broken HOT 3
- Docs sidebars take up way to much space HOT 4
- BokehJS docs page has issues HOT 2
- Bokeh.Plotting.figure.circle in bokehjs can't find `x` and `y` in a ColumnDataSource HOT 1
- CI jobs should fail immediately (or retry) if package install fails
- Remove typing_extenions at minpy 3.11
- [BUG] Tooltips not shown when plot is in fullscreen HOT 1
- [BUG] NPM package has types (*.d.ts) in incorrect location
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bokeh.