Ira

Results 7 comments of Ira
trafficstars

I ran across this and just needed to add a bit of css: ``` .select2-results { color: #444 !important; } .select2-results__option[aria-selected="true"] { background-color: rgb(231, 76, 60, .8) !important; } ```

Not the cleanest, but assuming your field is called `location`, add to your template: ``` $( document ).ready(function() { document.getElementById('id_location').style.display = "none"; }); ```

Make sure you are not hiding the whole div -- `div_id_location_coordinates` will hide everything. The above code works for me. Post code from your model and template.

This seems like the what the inject node is designed to do.

I'm curious if this works for anyone. It does not appear that there's even a way to set the colors on the bar chart (there's not a `get_colors()` like there...

That is the code that is working on my system. I am brand new to both chart.js and this project, so feedback is welcome. Something I can't seem to figure...

What needs to be changed? I am using Django 5.0.3 with the current release of django-chartjs and it seems to work fine.