我在chartJs中有一个图形,我需要图形上的数据点才能在屏幕上显示,而无需将鼠标悬停。当前,当我将鼠标悬停在图形上的点上时,数据点出现,但是我希望它出现并停留在屏幕上而无需悬停。 这全部是原始的javascript和html,没有使用任何框架。
@pytest.mark.gen_test
@patch('application.adapters.http_retriever.aiohttp.ClientSession.get')
async def test_get_files(mock_get):
with open('tests/unit/sample_csv_files/Katapult_mock_response.json','r') as f:
json_dict = json.load(f)
mock_get.return_value.__aenter__.return_value.json = CoroutineMock()
mock_get.return_value.__aenter__.return_value.status = 200
mock_get.return_value.__aenter__.return_value.json.return_value = json_dict